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