*/ class syntax_plugin_callflow extends DokuWiki_Syntax_Plugin { function getType(){return "protected";} function getSort(){return 151;} function connectTo($mode){$this->Lexer->addEntryPattern('(?=.*?)',$mode,'plugin_callflow');} function postConnect() { $this->Lexer->addExitPattern('','plugin_callflow'); } /** * Handle the match */ function handle($match, $state, $pos, Doku_Handler $handler) { switch ($state) { case DOKU_LEXER_ENTER : return array($state, array($state, $match)); case DOKU_LEXER_UNMATCHED : return array($state, $match); case DOKU_LEXER_EXIT : return array($state, ''); } return array(); } /** * Create output */ function render($mode, Doku_Renderer $renderer, $data) { // $data is what the function handle return'ed. if($mode == 'xhtml'){ list($state,$match) = $data; switch ($state) { case DOKU_LEXER_ENTER : $renderer->doc .= "
"; break;
				case DOKU_LEXER_UNMATCHED :  $renderer->doc .= $renderer->_xmlEntities($match); break;
				case DOKU_LEXER_EXIT :       $renderer->doc .= "
"; break; } return true; } return false; } }