24 require_once(
"./Services/Xml/classes/class.ilSaxParser.php");
25 require_once(
'./Services/User/classes/class.ilObjUser.php');
26 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
63 $this->error = $DIC[
"ilErr"];
64 parent::__construct(null);
86 xml_set_object($a_xml_parser, $this);
87 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
88 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
96 parent::startParsing();
113 case "ContainerReference":
117 switch ($a_attribs[
'type']) {
143 case "ContainerReference":
162 #$a_data = str_replace("<","<",$a_data); 163 #$a_data = str_replace(">",">",$a_data); 165 if (!empty($a_data)) {
166 $this->cdata .= $a_data;
179 include_once
'./Modules/Category/classes/class.ilCategoryXmlParser.php';
setHandlers($a_xml_parser)
set event handler should be overwritten by inherited class private
handlerEndTag($a_xml_parser, $a_name)
Handler end tag.
save()
Save category object.
setReference(ilContainerReference $ref)
Set container reference.
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
startParsing()
start the parser
getReference()
Get container reference.
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
__construct($a_xml, $a_parent_id=0)
Constructor.
getParentId()
Get parent id.
setXMLContent($a_xml_content)
setMode($mode)
Set import mode.