Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
generic_parser Class Reference

Public Member Functions

 get_token ($name)
 Get token of the parsable element $name.
 
 parse (&$string, $options=array())
 Parse function.
 

Protected Member Functions

 process_block_rule ($name, $block)
 Block processing function & callbacks.
 
 protect ($text)
 
 rules (&$text, $rules=null)
 Rules processing function & callback.
 
 set_options ($options)
 Initialize options.
 

Protected Attributes

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

The documentation for this class was generated from the following file: