1<?php
2
3use dokuwiki\Extension\SyntaxPlugin;
4
5/**
6 * DokuWiki Plugin @@PLUGIN_NAME@@ (Syntax Component)
7 *
8 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
9 * @author @@AUTHOR_NAME@@ <@@AUTHOR_MAIL@@>
10 */
11class @@PLUGIN_COMPONENT_NAME@@ extends SyntaxPlugin
12{
13    /** @inheritDoc */
14    public function getType()
15    {
16        return 'FIXME: container|baseonly|formatting|substition|protected|disabled|paragraphs';
17    }
18
19    /** @inheritDoc */
20    public function getPType()
21    {
22        return 'FIXME: normal|block|stack';
23    }
24
25    /** @inheritDoc */
26    public function getSort()
27    {
28        return FIXME;
29    }
30
31    /** @inheritDoc */
32    public function connectTo($mode)
33    {
34        $this->Lexer->addSpecialPattern('<FIXME>', $mode, '@@SYNTAX_COMPONENT_NAME@@');
35//        $this->Lexer->addEntryPattern('<FIXME>', $mode, '@@SYNTAX_COMPONENT_NAME@@');
36    }
37
38//    /** @inheritDoc */
39//    public function postConnect()
40//    {
41//        $this->Lexer->addExitPattern('</FIXME>', '@@SYNTAX_COMPONENT_NAME@@');
42//    }
43
44    /** @inheritDoc */
45    public function handle($match, $state, $pos, Doku_Handler $handler)
46    {
47        $data = [];
48
49        return $data;
50    }
51
52    /** @inheritDoc */
53    public function render($mode, Doku_Renderer $renderer, $data)
54    {
55        if ($mode !== 'xhtml') {
56            return false;
57        }
58
59        return true;
60    }
61}
62