4 require_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
31 $this->cont_obj =& $a_cont_obj;
36 $this->inst_id = IL_INST_ID;
45 require_once(
"./Services/Xml/classes/class.ilXmlWriter.php");
54 $attrs[
"identifier"] =
"il_".IL_INST_ID.
"_".
"man".
55 "_".$this->cont_obj->getId();
56 $attrs[
"version"] =
"";
57 $attrs[
"xmlns:xsi"] =
"http://www.w3.org/2001/XMLSchema-instance";
58 $attrs[
"xsi:schemaLocation"] =
"http://www.imsproject.org/xsd/imscp_rootv1p1p2".
59 " imscp_rootv1p1p2.xsd".
60 " http://www.imsglobal.org/xsd/imsmd_rootv1p2p1".
61 " imsmd_rootv1p2p1.xsd".
62 " http://www.adlnet.org/xsd/adlcp_rootv1p2".
63 " adlcp_rootv1p2.xsd";
64 $attrs[
"xmlns:imsmd"] =
"http://www.imsproject.org/xsd/imsmd_rootv1p2p1";
65 $attrs[
"xmlns:adlcp"] =
"http://www.adlnet.org/xsd/adlcp_rootv1p2";
66 $attrs[
"xmlns"] =
"http://www.imsproject.org/xsd/imscp_rootv1p1p2";
67 $this->writer->xmlStartTag(
"manifest", $attrs);
71 $this->writer->xmlStartTag(
"organizations", $attrs);
75 $attrs[
"identifier"] =
"il_".IL_INST_ID.
"_".$this->cont_obj->getType().
76 "_".$this->cont_obj->getId();
77 $attrs[
"structure"] =
"hierarchical";
78 $this->writer->xmlStartTag(
"organization", $attrs);
82 $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
88 $this->writer->xmlEndTag(
"organization");
91 $this->writer->xmlEndTag(
"organizations");
95 $this->writer->xmlStartTag(
"resources", $attrs);
101 $this->writer->xmlEndTag(
"resources");
104 $this->writer->xmlEndTag(
"manifest");
111 $this->writer->_XmlWriter;
119 $this->writer->xmlDumpFile($a_target_dir.
"/imsmanifest.xml",
false);
131 $attrs[
"identifier"] =
"INDEX";
132 $attrs[
"identifierref"] =
"RINDEX";
133 $this->writer->xmlStartTag(
"item", $attrs);
137 $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
140 $this->writer->xmlEndTag(
"item");
152 $attrs[
"identifier"] =
"RINDEX";
153 $attrs[
"type"] =
"webcontent";
154 $attrs[
"adlcp:scormtype"] =
"asset";
155 $attrs[
"href"] =
"res/index.html";
156 $this->writer->xmlElement(
"resource", $attrs,
"");