3 declare(strict_types=1);
22 parent::__construct();
25 $this->storing =
false;
28 $this->
object = array();
29 $this->ls_item_data = array();
31 $this->lp_settings = array();
32 $this->lp_settings[
"lp_item_ref_ids"] = array();
41 $ret[
"object"] = $this->object;
42 $ret[
"item_data"] = $this->ls_item_data;
43 $ret[
"settings"] = $this->settings;
44 $ret[
"lp_settings"] = $this->lp_settings;
52 xml_set_element_handler(
$parser,
"handleBeginTag",
"handleEndTag");
53 xml_set_character_data_handler(
$parser,
'handleCharacterData');
61 $this->actual_name =
$name;
65 $this->
object[
"ref_id"] = $attributes[
"ref_id"];
80 $this->obj->setTitle(trim($this->cdata));
83 $this->obj->setDescription(trim($this->cdata));
88 case "ls_item_order_number":
92 $this->
settings[
"abstract"] = base64_decode(trim($this->cdata));
95 $this->
settings[
"extro"] = base64_decode(trim($this->cdata));
98 $this->
settings[
"abstract_img"] = trim($this->cdata);
101 $this->
settings[
"extro_img"] = trim($this->cdata);
103 case "abstract_img_data":
104 $this->
settings[
"abstract_img_data"] = trim($this->cdata);
106 case "extro_img_data":
107 $this->
settings[
"extro_img_data"] = trim($this->cdata);
109 case "members_gallery":
110 $this->
settings[
"members_gallery"] = trim($this->cdata);
112 case "lp_item_ref_id":
113 $this->lp_settings[
"lp_item_ref_ids"][] = trim($this->cdata);
116 $this->lp_settings[
"lp_type"] = trim($this->cdata);
119 $this->lp_settings[
"lp_mode"] = trim($this->cdata);
128 $this->cdata =
$data ??
"";
134 $this->storing =
true;
139 $this->storing =
false;
144 if ($this->storing) {
145 $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)
if(array_key_exists('yes', $_REQUEST)) $attributes
handleEndTag($parser, string $name)
setXMLContent($a_xml_content)