24 require_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
51 $this->cont_obj =& $a_cont_obj;
56 $this->inst_id = IL_INST_ID;
65 require_once(
"classes/class.ilXmlWriter.php");
74 $attrs[
"identifier"] =
"il_".IL_INST_ID.
"_".
"man".
75 "_".$this->cont_obj->getId();
76 $attrs[
"version"] =
"";
77 $attrs[
"xmlns:xsi"] =
"http://www.w3.org/2001/XMLSchema-instance";
78 $attrs[
"xsi:schemaLocation"] =
"http://www.imsproject.org/xsd/imscp_rootv1p1p2".
79 " imscp_rootv1p1p2.xsd".
80 " http://www.imsglobal.org/xsd/imsmd_rootv1p2p1".
81 " imsmd_rootv1p2p1.xsd".
82 " http://www.adlnet.org/xsd/adlcp_rootv1p2".
83 " adlcp_rootv1p2.xsd";
84 $attrs[
"xmlns:imsmd"] =
"http://www.imsproject.org/xsd/imsmd_rootv1p2p1";
85 $attrs[
"xmlns:adlcp"] =
"http://www.adlnet.org/xsd/adlcp_rootv1p2";
86 $attrs[
"xmlns"] =
"http://www.imsproject.org/xsd/imscp_rootv1p1p2";
87 $this->writer->xmlStartTag(
"manifest", $attrs);
91 $this->writer->xmlStartTag(
"organizations", $attrs);
95 $attrs[
"identifier"] =
"il_".IL_INST_ID.
"_".$this->cont_obj->getType().
96 "_".$this->cont_obj->getId();
97 $attrs[
"structure"] =
"hierarchical";
98 $this->writer->xmlStartTag(
"organization", $attrs);
102 $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
108 $this->writer->xmlEndTag(
"organization");
111 $this->writer->xmlEndTag(
"organizations");
115 $this->writer->xmlStartTag(
"resources", $attrs);
121 $this->writer->xmlEndTag(
"resources");
124 $this->writer->xmlEndTag(
"manifest");
131 $this->writer->_XmlWriter;
139 $this->writer->xmlDumpFile($a_target_dir.
"/imsmanifest.xml",
false);
151 $attrs[
"identifier"] =
"INDEX";
152 $attrs[
"identifierref"] =
"RINDEX";
153 $this->writer->xmlStartTag(
"item", $attrs);
157 $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
160 $this->writer->xmlEndTag(
"item");
172 $attrs[
"identifier"] =
"RINDEX";
173 $attrs[
"type"] =
"webcontent";
174 $attrs[
"adlcp:scormtype"] =
"asset";
175 $attrs[
"href"] =
"res/index.html";
176 $this->writer->xmlElement(
"resource", $attrs,
"");