Parser. We override the standard parser so we can find both described interwiki links and standalone links.
Overrides
Text_Wiki_Rule::parse() (Simple parsing method to apply the rule's regular expression to the source text, pass every match to the process() method, and replace the matched text with the results of the processing.)
A process(
array
&$matches)
|
|
Generates a replacement for the matched standalone interwiki text.
Token options are:
'site' => The key name for the Text_Wiki interwiki array map, usually the name of the interwiki site.
'page' => The page on the target interwiki to link to.
'text' => The text to display as the link.
Overrides
Text_Wiki_Rule::process() (Simple processing mathod to take matched text and generate replacement text. This is one of the methods you will definitely want to override in your rule class extensions.)
Parameters:
A processDescr(
array
&$matches)
|
|
Generates a replacement for described interwiki links. Token options are:
'site' => The key name for the Text_Wiki interwiki array map, usually the name of the interwiki site.
'page' => The page on the target interwiki to link to.
'text' => The text to display as the link.
Parameters:
string renderXhtml(
array
$options)
|
|
Renders a token into text matching the requested format.
Overrides
Text_Wiki_Rule::renderXhtml() (Simple rendering method to take a set of token options and generate replacement text for it. This is another method you will definitely want to override in your rule subclass extensions.)
Parameters: