4 require_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
30 $ilDB = $DIC->database();
32 $this->cont_obj = $a_cont_obj;
36 $this->inst_id = IL_INST_ID;
44 require_once(
"./Services/Xml/classes/class.ilXmlWriter.php");
53 $attrs[
"identifier"] =
"il_" . IL_INST_ID .
"_" .
"man" .
54 "_" . $this->cont_obj->getId();
55 $attrs[
"version"] =
"";
56 $attrs[
"xmlns:xsi"] =
"http://www.w3.org/2001/XMLSchema-instance";
57 $attrs[
"xsi:schemaLocation"] =
"http://www.imsproject.org/xsd/imscp_rootv1p1p2" .
58 " imscp_rootv1p1p2.xsd" .
59 " http://www.imsglobal.org/xsd/imsmd_rootv1p2p1" .
60 " imsmd_rootv1p2p1.xsd" .
61 " http://www.adlnet.org/xsd/adlcp_rootv1p2" .
62 " adlcp_rootv1p2.xsd";
63 $attrs[
"xmlns:imsmd"] =
"http://www.imsproject.org/xsd/imsmd_rootv1p2p1";
64 $attrs[
"xmlns:adlcp"] =
"http://www.adlnet.org/xsd/adlcp_rootv1p2";
65 $attrs[
"xmlns"] =
"http://www.imsproject.org/xsd/imscp_rootv1p1p2";
66 $this->writer->xmlStartTag(
"manifest", $attrs);
70 $this->writer->xmlStartTag(
"organizations", $attrs);
74 $attrs[
"identifier"] =
"il_" . IL_INST_ID .
"_" . $this->cont_obj->getType() .
75 "_" . $this->cont_obj->getId();
76 $attrs[
"structure"] =
"hierarchical";
77 $this->writer->xmlStartTag(
"organization", $attrs);
81 $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
87 $this->writer->xmlEndTag(
"organization");
90 $this->writer->xmlEndTag(
"organizations");
94 $this->writer->xmlStartTag(
"resources", $attrs);
100 $this->writer->xmlEndTag(
"resources");
103 $this->writer->xmlEndTag(
"manifest");
110 $this->writer->_XmlWriter;
116 public function dump($a_target_dir)
118 $this->writer->xmlDumpFile($a_target_dir .
"/imsmanifest.xml",
false);
130 $attrs[
"identifier"] =
"INDEX";
131 $attrs[
"identifierref"] =
"RINDEX";
132 $this->writer->xmlStartTag(
"item", $attrs);
136 $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
139 $this->writer->xmlEndTag(
"item");
151 $attrs[
"identifier"] =
"RINDEX";
152 $attrs[
"type"] =
"webcontent";
153 $attrs[
"adlcp:scormtype"] =
"asset";
154 $attrs[
"href"] =
"res/index.html";
155 $this->writer->xmlElement(
"resource", $attrs,
"");
__construct($a_cont_obj)
Constructor public.
dump($a_target_dir)
dump manifest file into directory
Content Object (ILIAS native learning module / digilib book) Manifest export class.
writeResources()
write resources
xmlHeader()
Writes xml header public.
Create styles array
The data for the language used.
writeItemHierarchy()
write item hierarchy
buildManifest()
build manifest structure