* * @package Text_Wiki * */ class Text_Wiki_Parse_Lien extends Text_Wiki_Parse { var $regex = '/\{\{Lien ((?:menu)|(?:site))="((?:\w+)|(?:\d+))" (?:(?:titre)="(.*)")* *\}\}/'; /** * * Remplace l'action par une liste des dernières pages modifiées * Les options sont: * * 'site' => le code alphanumérique du ou des sites que l'on veut afficher * * @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) { if (!isset($matches[3])) $matches[3]=''; $options = array( 'niveau' => $matches[1], 'identifiant' => $matches[2], 'titre' => $matches[3] ); return $this->wiki->addToken($this->rule, $options); } } ?>