19 declare(strict_types=1);
58 $this->ls_item_data = [];
60 $this->lp_settings = [];
61 $this->lp_settings[
"lp_item_ref_ids"] = [];
91 $this->actual_name = $name;
95 $this->
object[
"ref_id"] = $attributes[
"ref_id"];
96 $this->
settings[
"members_gallery"] = $attributes[
'members_gallery'];
98 case Writer::TAG_LPSETTING:
99 $this->lp_settings[
"lp_type"] = $attributes[
'type'];
100 $this->lp_settings[
"lp_mode"] = $attributes[
'mode'];
101 $this->lp_settings[
"lp_item_ref_ids"] = [];
104 case Writer::TAG_LSITEM:
105 $this->counter = (
int) $attributes[
"ref_id"];
106 $this->ls_item_data[
$this->counter][
"ref_id"] = $attributes[
"ref_id"];
109 case Writer::TAG_CONDITION:
110 $this->ls_item_data[
$this->counter][
"condition_type"] = $attributes[
"type"];
114 case Writer::TAG_CONTAINERSETTING:
115 $this->current_container_setting = $attributes[
'id'];
125 $this->cdata = trim($this->cdata);
128 case Writer::TAG_LPREFID:
129 $this->lp_settings[
"lp_item_ref_ids"][] = trim($this->cdata);
131 case Writer::TAG_CONTAINERSETTING:
132 if ($this->current_container_setting) {
141 case Writer::TAG_TITLE:
142 $this->obj->setTitle(trim($this->cdata));
145 case Writer::TAG_DESCRIPTION:
146 $this->obj->setDescription(trim($this->cdata));
158 $this->cdata .= (
$data ??
"");
handleCharacterData($parser, $data)
startParsing()
stores xml data in array
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(protected ilObjLearningSequence $obj, string $xml)
string $current_container_setting
handleBeginTag( $parser, string $name, array $attributes)
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
__construct(Container $dic, ilPlugin $plugin)
handleEndTag($parser, string $name)
setXMLContent(string $a_xml_content)
setHandlers($a_xml_parser)