[ Index ] |
|
Code source de Serendipity 1.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 179 lignes (7 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Text_Wiki_Rule_freelink:: (3 méthodes):
Text_Wiki_Rule_freelink()
process()
renderXhtml()
Classe: Text_Wiki_Rule_freelink - X-Ref
This class implements a Text_Wiki_Rule to find source text marked as aText_Wiki_Rule_freelink(&$obj, $name) X-Ref |
Constructor. We override the Text_Wiki_Rule constructor so we can explicitly comment each part of the $regex property. param: object &$obj The calling "parent" Text_Wiki object. param: string $name The token name to use for this rule. |
process(&$matches) X-Ref |
Generates a replacement for the matched text. Token options are: 'page' => the wiki page name (e.g., HomePage). 'text' => alternative text to be displayed in place of the wiki page name. 'anchor' => a named anchor on the target wiki page param: array &$matches The array of matches from parse(). return: A delimited token to be used as a placeholder in |
renderXhtml($options) X-Ref |
Renders a token into text matching the requested format. param: array $options The "options" portion of the token (second return: string The text rendered from the token options. |
Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |