Additional Inherited Members |
| | formatParts ($text, &$parts, $open_rule=NULL) |
Constructor & Destructor Documentation
Member Function Documentation
| static addStudipMarkup |
( |
|
$name, |
|
|
|
$start, |
|
|
|
$end, |
|
|
|
$callback |
|
) |
| |
|
static |
Adds a new markup rule to the global Stud.IP markup set. This can also be used to replace an existing markup rule. The end regular expression is optional (i.e. may be NULL) to indicate that this rule has an empty content model. The callback is called whenever the rule matches and is passed the following arguments:
- $markup the markup parser object
- $matches match results of preg_match for $start
- $contents (parsed) contents of this markup rule
- Parameters
-
| string | $name | name of this rule |
| string | $start | start regular expression |
| string | $end | end regular expression (optional) |
| callback | $callback | function generating output of this rule |
| static getStudipMarkups |
( |
| ) |
|
|
static |
Returns the list of global Stud.IP markup rules as an array. Each entry has the following attributes: 'start', 'end' and 'callback'. The rule name is used as the entry's array key.
- Returns
- array list of all markup rules
| static markupNoFormat |
( |
|
$markup, |
|
|
|
$matches |
|
) |
| |
|
staticprotected |
Stud.IP markup for unformatted text
| static markupSignature |
( |
|
$markup, |
|
|
|
$matches |
|
) |
| |
|
staticprotected |
| static removeStudipMarkup |
( |
|
$name | ) |
|
|
static |
Removes a markup rule from the global Stud.IP markup set.
- Parameters
-
| string | $name | name of the rule |
The documentation for this class was generated from the following file: