3 declare(strict_types=1);
28 $this->storing =
false;
31 $this->
object = array();
32 $this->ls_item_data = array();
34 $this->lp_settings = array();
35 $this->lp_settings[
"lp_item_ref_ids"] = array();
44 $ret[
"object"] = $this->object;
45 $ret[
"item_data"] = $this->ls_item_data;
46 $ret[
"settings"] = $this->settings;
47 $ret[
"lp_settings"] = $this->lp_settings;
54 xml_set_object($parser, $this);
55 xml_set_element_handler($parser,
"handleBeginTag",
"handleEndTag");
56 xml_set_character_data_handler($parser,
'handleCharacterData');
64 $this->actual_name =
$name;
68 $this->
object[
"ref_id"] = $attributes[
"ref_id"];
81 $this->cdata = trim($this->cdata);
85 $this->obj->setTitle(trim($this->cdata));
88 $this->obj->setDescription(trim($this->cdata));
93 case "ls_item_order_number":
97 $this->
settings[
"abstract"] = base64_decode(trim($this->cdata));
100 $this->
settings[
"extro"] = base64_decode(trim($this->cdata));
103 $this->
settings[
"abstract_img"] = trim($this->cdata);
106 $this->
settings[
"extro_img"] = trim($this->cdata);
108 case "abstract_img_data":
109 $this->
settings[
"abstract_img_data"] = trim($this->cdata);
111 case "extro_img_data":
112 $this->
settings[
"extro_img_data"] = trim($this->cdata);
114 case "members_gallery":
115 $this->
settings[
"members_gallery"] = trim($this->cdata);
117 case "lp_item_ref_id":
118 $this->lp_settings[
"lp_item_ref_ids"][] = trim($this->cdata);
121 $this->lp_settings[
"lp_type"] = trim($this->cdata);
124 $this->lp_settings[
"lp_mode"] = trim($this->cdata);
135 $this->cdata .= (
$data ??
"");
141 $this->storing =
true;
146 $this->storing =
false;
151 if ($this->storing) {
152 $this->ls_item_data[
$this->counter][$this->actual_name] = $this->cdata ??
"";
handleCharacterData($parser, $data)
startParsing()
stores xml data in array
Class ilObjLearningSequence.
__construct(ilObjLearningSequence $obj, string $xml)
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
handleBeginTag( $parser, string $name, array $attributes)
__construct(Container $dic, ilPlugin $plugin)
handleEndTag($parser, string $name)
setXMLContent($a_xml_content)