$conf
$conf : string
Configuration options for this parser rule.
Parses for definition lists.
This class implements a Text_Wiki_Parse to find source text marked as a definition list. In short, if a line starts with ':' then it is a definition list item; another ':' on the same line indicates the end of the definition term and the beginning of the definition narrative. The list items must be on sequential lines (no blank lines between them) -- a blank line indicates the beginning of a new list.
process(array $matches) : \A
Generates a replacement for the matched text. Token options are:
'type' => 'list_start' : the start of a definition list 'list_end' : the end of a definition list 'term_start' : the start of a definition term 'term_end' : the end of a definition term 'narr_start' : the start of definition narrative 'narr_end' : the end of definition narrative 'unknown' : unknown type of definition portion
array | $matches | An array of matches from the parse() method as generated by preg_replace_callback. $matches[0] is the full matched string, $matches[1] is the first matched pattern, $matches[2] is the second matched pattern, and so on. |
series of text and delimited tokens marking the different list text and list elements.
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.