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