Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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 = "%!"
 
 $parserstatus = 'Before'
 
 $returnvalues = array()
 Dynamic return values.
 
 $string
 
 $tagrules = array()
 

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