$regex
$regex : string
Regular expression to find matching text for this rule.
Parser class for table elements.
Keeps track of columns width, necessary for reST rendering.
process(array $matches) : string
Generates a replacement for the matched text.
Token options are:
'type' => 'table_start' : the start of a bullet list 'table_end' : the end of a bullet list 'row_start' : the start of a number list 'row_end' : the end of a number list 'cell_start' : the start of item text (bullet or number) 'cell_end' : the end of item text (bullet or number)
'cols' => the number of columns in the table (for 'table_start')
'rows' => the number of rows in the table (for 'table_start')
'span' => column span (for 'cell_start')
'attr' => column attribute flag (for 'cell_start')
array | $matches | The array of matches from parse(). |
A series of text and delimited tokens marking the different table elements and cell text.
getConf(string $key, mixed $default = null) : mixed
Simple method to safely get configuration key values.
string | $key | The configuration key. |
mixed | $default | If the key does not exist, return this value instead. |
The configuration key value (if it exists) or the default value (if not).
getAttrs(string $text) : array
Extract 'attribute="value"' portions of wiki markup.
This kind of markup is typically used only in macros, but is useful anywhere.
The syntax is pretty strict; there can be no spaces between the option name, the equals, and the first double-quote; the value must be surrounded by double-quotes. You can escape characters in the value with a backslash, and the backslash will be stripped for you.
string | $text | The "attributes" portion of markup. |
An associative array of key-value pairs where the key is the option name and the value is the option value.