'Gryaznov Sergey', 'email' => 'stalker@narezka.org', 'date' => '09-02-17', 'name' => 'Table Calculations Plugin', 'desc' => 'Enables Excel style formulas in table syntax', 'url' => 'https://narezka.org/tablecalc', ); } function getType() { return 'substition'; } function getSort() { return 1213; } /** * Connect pattern to lexer */ function connectTo($mode) { $this->Lexer->addSpecialPattern("~~=[_a-z\ A-Z0-9\%\:\.,\\\/\*\-\+\(\)\&\|#>id_index++; return array('formula'=>$match, 'divid'=>'__tablecalc'.$this->id_index,'idx'=>$this->id_index); } function render($mode, Doku_Renderer $renderer, $data) { global $INFO, $ID, $conf; //var_dump($data); if($mode == 'xhtml'){ $renderer->doc .= ''; return true; } return false; } } ?>