53 $this->default_handler = $a_default_parser;
62 $this->element_handlers[$a_element] = $a_parser;
63 $this->handlers_in_use[$a_element] =
false;
74 public function handlerBeginTag($a_xml_parser,
string $a_name, array $a_attribs): void
76 if (isset($this->element_handlers[$a_name]) or $this->handler_in_use) {
77 if (!$this->handler_in_use) {
78 $this->handler_in_use = $this->element_handlers[$a_name];
82 $this->current_handler->handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
86 $this->handler_in_use =
false;
88 $this->default_handler->
handlerBeginTag($a_xml_parser, $a_name, $a_attribs);
99 if (isset($this->element_handlers[$a_name])) {
100 $this->handler_in_use =
false;
101 $this->current_handler = $this->element_handlers[$a_name];
102 $this->element_handlers[$a_name]->handlerEndTag($a_xml_parser, $a_name);
104 } elseif ($this->handler_in_use) {
106 $this->current_handler->handlerEndTag($a_xml_parser, $a_name);
109 $this->handler_in_use =
false;
111 $this->default_handler->
handlerEndTag($a_xml_parser, $a_name);
124 $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
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
Start element handler.