41         xml_set_object($a_xml_parser, $this);
    42         xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
    43         xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
    51         $this->default_handler = $a_default_parser;
    60         $this->element_handlers[$a_element] = $a_parser;
    61         $this->handlers_in_use[$a_element] = 
false;
    72     public function handlerBeginTag($a_xml_parser, 
string $a_name, array $a_attribs): void
    74         if (isset($this->element_handlers[$a_name]) or $this->handler_in_use) {
    75             if (!$this->handler_in_use) {
    76                 $this->handler_in_use = $this->element_handlers[$a_name];
    80             $this->current_handler->handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
    84         $this->handler_in_use = 
false;
    86         $this->default_handler->
handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
    97         if (isset($this->element_handlers[$a_name])) {
    98             $this->handler_in_use = 
false;
    99             $this->current_handler = $this->element_handlers[$a_name];
   100             $this->element_handlers[$a_name]->handlerEndTag($a_xml_parser, $a_name);
   102         } elseif ($this->handler_in_use) {
   104             $this->current_handler->handlerEndTag($a_xml_parser, $a_name);
   107         $this->handler_in_use = 
false;
   109         $this->default_handler->
handlerEndTag($a_xml_parser, $a_name);
   122         $this->current_handler->handlerCharacterData(
 setHandlers($a_xml_parser)
Set handlers. 
 
setElementHandler(ilSaxSubsetParser $a_parser, string $a_element)
 
handlerCharacterData( $a_xml_parser, string $a_data)
handler for character data 
 
handlerEndTag($a_xml_parser, string $a_name)
End element handler. 
 
ilSaxSubsetParser $default_handler
 
ilSaxSubsetParser $current_handler
 
setDefaultElementHandler(ilSaxSubsetParser $a_default_parser)
Set default element handler. 
 
handlerEndTag($a_xml_parser, string $a_name)
handler for end of element 
 
handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
default handlerBeginTag 
 
Interface definition for sax subset parsers. 
 
Controller class for sax element handlers. 
 
handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
Start element handler.