* * @package Text_Wiki * */ class Text_Wiki_Parse_Categorie extends Text_Wiki_Parse { var $regex = '/\{\{Categorie mots="(.+?)"\}\}/'; /** * * Remplace l'action par une liste des pages contenant les mots clés choisis * Les options sont: * * 'mots' => les mots clés séparés par des virgules * * @access public * * @param array &$matches The array of matches from parse(). * * @return A delimited token to be used as a placeholder in * the source text, plus any text priot to the match. * */ function process(&$matches) { $options = array( 'mots' => $matches[1] ); return $this->wiki->addToken($this->rule, $options); } } ?>