170316b84SAndreas Gohr<?php 2*8673a04eSAndreas Gohr 3*8673a04eSAndreas Gohruse dokuwiki\Extension\SyntaxPlugin; 4*8673a04eSAndreas Gohr 570316b84SAndreas Gohr/** 670316b84SAndreas Gohr * DokuWiki Plugin @@PLUGIN_NAME@@ (Syntax Component) 770316b84SAndreas Gohr * 870316b84SAndreas Gohr * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 970316b84SAndreas Gohr * @author @@AUTHOR_NAME@@ <@@AUTHOR_MAIL@@> 1070316b84SAndreas Gohr */ 11*8673a04eSAndreas Gohrclass @@PLUGIN_COMPONENT_NAME@@ extends SyntaxPlugin 1270316b84SAndreas Gohr{ 1370316b84SAndreas Gohr /** @inheritDoc */ 1470316b84SAndreas Gohr public function getType() 1570316b84SAndreas Gohr { 1670316b84SAndreas Gohr return 'FIXME: container|baseonly|formatting|substition|protected|disabled|paragraphs'; 1770316b84SAndreas Gohr } 1870316b84SAndreas Gohr 1970316b84SAndreas Gohr /** @inheritDoc */ 2070316b84SAndreas Gohr public function getPType() 2170316b84SAndreas Gohr { 2270316b84SAndreas Gohr return 'FIXME: normal|block|stack'; 2370316b84SAndreas Gohr } 2470316b84SAndreas Gohr 2570316b84SAndreas Gohr /** @inheritDoc */ 2670316b84SAndreas Gohr public function getSort() 2770316b84SAndreas Gohr { 2870316b84SAndreas Gohr return FIXME; 2970316b84SAndreas Gohr } 3070316b84SAndreas Gohr 3170316b84SAndreas Gohr /** @inheritDoc */ 3270316b84SAndreas Gohr public function connectTo($mode) 3370316b84SAndreas Gohr { 3470316b84SAndreas Gohr $this->Lexer->addSpecialPattern('<FIXME>', $mode, '@@SYNTAX_COMPONENT_NAME@@'); 3570316b84SAndreas Gohr// $this->Lexer->addEntryPattern('<FIXME>', $mode, '@@SYNTAX_COMPONENT_NAME@@'); 3670316b84SAndreas Gohr } 3770316b84SAndreas Gohr 3870316b84SAndreas Gohr// /** @inheritDoc */ 3970316b84SAndreas Gohr// public function postConnect() 4070316b84SAndreas Gohr// { 4170316b84SAndreas Gohr// $this->Lexer->addExitPattern('</FIXME>', '@@SYNTAX_COMPONENT_NAME@@'); 4270316b84SAndreas Gohr// } 4370316b84SAndreas Gohr 4470316b84SAndreas Gohr /** @inheritDoc */ 4570316b84SAndreas Gohr public function handle($match, $state, $pos, Doku_Handler $handler) 4670316b84SAndreas Gohr { 47*8673a04eSAndreas Gohr $data = []; 4870316b84SAndreas Gohr 4970316b84SAndreas Gohr return $data; 5070316b84SAndreas Gohr } 5170316b84SAndreas Gohr 5270316b84SAndreas Gohr /** @inheritDoc */ 5370316b84SAndreas Gohr public function render($mode, Doku_Renderer $renderer, $data) 5470316b84SAndreas Gohr { 5570316b84SAndreas Gohr if ($mode !== 'xhtml') { 5670316b84SAndreas Gohr return false; 5770316b84SAndreas Gohr } 5870316b84SAndreas Gohr 5970316b84SAndreas Gohr return true; 6070316b84SAndreas Gohr } 6170316b84SAndreas Gohr} 62