Lexer->addSpecialPattern('#[0-9]+',$mode,'plugin_bez_qlink'); } function handle($match, $state, $pos, &$handler) { $whash = substr($match, 1, strlen($match)); $ex = explode(':', $whash); return array($ex[0], isset($ex[1]) ? $ex[1] : 0); } function render($mode, &$renderer, $data) { if ($mode == 'xhtml') { list($issue, $event) = $data; $helper = $this->loadHelper('bez'); $renderer->doc .= $bds->html_anchor_to_event($issue, $event, true); return true; } return false; } }