Moodle  2.2.1
http://www.collinsharper.com
generic_parser Class Reference
Inheritance diagram for generic_parser:

Public Member Functions

 __construct ()
 parse (&$string, $options=array())
 get_token ($name)

Protected Member Functions

 set_options ($options)
 process_block_rule ($name, $block)
 rules (&$text, $rules=null)
 protect ($text)

Protected Attributes

 $string
 $blockrules = array()
 $tagrules = array()
 $parser_status = 'Before'
 $returnvalues = array()
 $nowikitoken = "%!"

Detailed Description

Definition at line 81 of file parser.php.


Constructor & Destructor Documentation

Reimplemented in html_parser.

Definition at line 101 of file parser.php.


Member Function Documentation

get_token ( name)

Get token of the parsable element $name.

Definition at line 275 of file parser.php.

parse ( &$  string,
options = array() 
)

Parse function

Definition at line 107 of file parser.php.

Here is the call graph for this function:

process_block_rule ( name,
block 
) [protected]

Block processing function & callbacks

Definition at line 149 of file parser.php.

Here is the caller graph for this function:

protect ( text) [protected]

Definition at line 256 of file parser.php.

Here is the caller graph for this function:

rules ( &$  text,
rules = null 
) [final, protected]

Rules processing function & callback

Definition at line 187 of file parser.php.

Here is the caller graph for this function:

set_options ( options) [protected]

Initialize options

Reimplemented in wiki_markup_parser.

Definition at line 143 of file parser.php.

Here is the caller graph for this function:


Field Documentation

$blockrules = array() [protected]

Reimplemented in nwiki_parser, creole_parser, and html_parser.

Definition at line 84 of file parser.php.

$nowikitoken = "%!" [protected]

Definition at line 99 of file parser.php.

$parser_status = 'Before' [protected]

Definition at line 89 of file parser.php.

$returnvalues = array() [protected]

Dynamic return values

Definition at line 95 of file parser.php.

$string [protected]

Definition at line 82 of file parser.php.

$tagrules = array() [protected]

Reimplemented in nwiki_parser, and creole_parser.

Definition at line 85 of file parser.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations