1<?php
2/**
3 * DokuWiki Plugin htmlok (Syntax Component)
4 *
5 * @license GPL 2 https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 * @author  saggi <saggi@gmx.de>
7 * @author  Elan Ruusamäe <glen@delfi.ee>
8 */
9
10use dokuwiki\plugin\htmlok\BaseSyntaxPlugin;
11
12class syntax_plugin_htmlok_phpok extends BaseSyntaxPlugin
13{
14    protected $ptype = 'normal';
15    protected $sort = 180;
16    protected $tag = 'php';
17    protected $mode = 'plugin_htmlok_phpok';
18
19    protected function renderMatch(string $match): string
20    {
21        return $this->php($match);
22    }
23}
24