3 declare(strict_types=1);
64 "<!DOCTYPE learning sequence PUBLIC \"-//ILIAS//DTD LearningSequence//EN\" \"" .
65 ILIAS_HTTP_PATH .
"/xml/ilias_lso_5_4.dtd\">" 69 "Export of ILIAS LearningSequence " .
70 $this->ls_object->getId() .
79 $att[
"ref_id"] = $this->ls_object->getRefId();
86 $this->
xmlElement(
"title", null, $this->ls_object->getTitle());
91 $this->
xmlElement(
"description", null, $this->ls_object->getDescription());
96 $att[
'id'] =
'il_' . $this->
settings->get(
"inst_id") .
'_usr_' . $this->ls_object->getOwner();
102 $ls_items = $this->ls_object->getLSItems();
106 foreach ($ls_items as $ls_item) {
107 $post_condition = $ls_item->getPostCondition();
108 $att[
"id"] = $ls_item->getRefId();
111 $this->
xmlElement(
"ls_item_pc_ref_id", null, $post_condition->getRefId());
112 $this->
xmlElement(
"ls_item_pc_condition_type", null, $post_condition->getConditionOperator());
113 $this->
xmlElement(
"ls_item_pc_value", null, $post_condition->getValue());
114 $this->
xmlElement(
"ls_item_type", null, $ls_item->getType());
115 $this->
xmlElement(
"ls_item_title", null, $ls_item->getTitle());
116 $this->
xmlElement(
"ls_item_description", null, $ls_item->getDescription());
117 $this->
xmlElement(
"ls_item_icon_path", null, $ls_item->getIconPath());
118 $this->
xmlElement(
"ls_item_is_online", null, (
string) $ls_item->isOnline());
119 $this->
xmlElement(
"ls_item_order_number", null, (
string) $ls_item->getOrderNumber());
129 $abstract_img = $this->ls_settings->getAbstractImage();
130 $extro_img = $this->ls_settings->getExtroImage();
132 $this->
xmlElement(
"abstract", null, base64_encode($this->ls_settings->getAbstract()));
133 $this->
xmlElement(
"extro", null, base64_encode($this->ls_settings->getExtro()));
134 $this->
xmlElement(
"members_gallery", null, $this->ls_settings->getMembersGallery());
135 $this->
xmlElement(
"abstract_img", null, $abstract_img);
136 $this->
xmlElement(
"extro_img", null, $extro_img);
143 if (!$this->
settings->get(
"enable_tracking")) {
148 $this->ls_object->getId(),
149 $this->lp_settings->getMode()
152 if (!is_null($collection)) {
153 $items = $collection->getItems();
155 foreach ($items as $item) {
156 $this->
xmlElement(
"lp_item_ref_id", null, $item);
160 $this->
xmlElement(
"lp_type", null, $this->lp_settings->getObjType());
161 $this->
xmlElement(
"lp_mode", null, $this->lp_settings->getMode());
170 return base64_encode(file_get_contents(
$path));
ilLPObjSettings $lp_settings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlSetGenCmt(string $genCmt)
Sets generated comment.
ilObjLearningSequence $ls_object
ilRbacReview $rbac_review
xmlEndTag(string $tag)
Writes an endtag.
static getInstanceByMode(int $a_obj_id, int $a_mode)
xmlSetDtdDef(string $dtdDef)
Sets dtd definition.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilLearningSequenceSettings $ls_settings
__construct(Container $dic, ilPlugin $plugin)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
encodeImage(string $path=null)
xmlDumpMem(bool $format=true)
Returns xml document from memory.
__construct(ilObjLearningSequence $ls_object, ilSetting $settings, ilLPObjSettings $lp_settings, ilRbacReview $rbac_review)