1 <?php declare(strict_types=1);
35 xml_set_object($a_xml_parser, $this);
36 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
37 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
46 public function handlerBeginTag($a_xml_parser,
string $a_name, array $a_attribs) : void
57 $this->xmlResultSet->addColumn($a_attribs[
"name"]);
61 $this->xmlResultSet->addRow($this->currentRow);
62 $this->currentColumnIndex = 0;
77 $this->currentRow->setValue($this->currentColumnIndex, $this->cdata);
78 $this->currentColumnIndex++;
92 if ($a_data !==
"\n") {
94 $a_data = preg_replace(
"/\t+/",
" ", $a_data);
95 $this->cdata .= trim($a_data);
__construct(string $a_xml_data='')
Row Class for XMLResultSet.
ilXMLResultSet $xmlResultSet
handlerEndTag($a_xml_parser, string $a_name)
Handler for end of element.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setHandlers($a_xml_parser)
handlerCharacterData($a_xml_parser, string $a_data)
Handler for character data.
ilXMLResultSetRow $currentRow
__construct(Container $dic, ilPlugin $plugin)
handlerBeginTag($a_xml_parser, string $a_name, array $a_attribs)
setXMLContent(string $a_xml_content)