Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
xmlparser.php File Reference

Functions

 __construct ()
 Constructor creates and initialises parser resource and calls initialise.
 
 discard_data ($parser, $data)
 Discard the next chunk of character data.
 
 end_element ($parser, $name)
 Switch the character-data handler to ignore the next chunk of data.
 
 free_resource ()
 Destroy the parser and free up any related resource.
 
 initialise ()
 Set default element handlers and initialise properties to empty.
 
 mnet_encxml_parser ()
 Old syntax of class constructor.
 
 parse ($data)
 Parse a block of XML text.
 
 parse_cipher ($parser, $data)
 Add the next chunk of character data to the cipher string for that tag.
 
 parse_digest ($parser, $data)
 Add the next chunk of character data to the digest string.
 
 parse_fault ($parser, $data)
 
 parse_object ($parser, $data)
 Add the next chunk of character data to the data_object string.
 
 parse_signature ($parser, $data)
 Add the next chunk of character data to the signature string.
 
 parse_timestamp ($parser, $data)
 Add the next chunk of character data to the remote_timestamp string.
 
 parse_wwwroot ($parser, $data)
 Add the next chunk of character data to the remote_wwwroot string.
 
 start_element ($parser, $name, $attrs)
 Set the character-data handler to the right function for each element.
 

Variables

array $cipher = []
 the chiper string.
 
string $data_object
 data_object string.
 
array $error = []
 error information with code and string keys.
 
bool $payload_encrypted
 true if $chiper has a value, otherwise false.
 
string $remote_timestamp
 remote_timestamp string.
 
string $remote_wwwroot
 remote_wwwroot string.
 
string $remoteerror
 The remote error string, specified in the discard_data().
 
string $signature
 signature string.
 
*author Donal McMullan donal catalyst net nz *version *license http