31        $this->cont_obj = $a_cont_obj;
 
   50        $attrs[
"identifier"] = 
"il_" . 
IL_INST_ID . 
"_" . 
"man" .
 
   51            "_" . $this->cont_obj->getId();
 
   52        $attrs[
"version"] = 
"";
 
   53        $attrs[
"xmlns:xsi"] = 
"http://www.w3.org/2001/XMLSchema-instance";
 
   54        $attrs[
"xsi:schemaLocation"] = 
"http://www.imsproject.org/xsd/imscp_rootv1p1p2" .
 
   55            " imscp_rootv1p1p2.xsd" .
 
   56            " http://www.imsglobal.org/xsd/imsmd_rootv1p2p1" .
 
   57            " imsmd_rootv1p2p1.xsd" .
 
   58            " http://www.adlnet.org/xsd/adlcp_rootv1p2" .
 
   59            " adlcp_rootv1p2.xsd";
 
   60        $attrs[
"xmlns:imsmd"] = 
"http://www.imsproject.org/xsd/imsmd_rootv1p2p1";
 
   61        $attrs[
"xmlns:adlcp"] = 
"http://www.adlnet.org/xsd/adlcp_rootv1p2";
 
   62        $attrs[
"xmlns"] = 
"http://www.imsproject.org/xsd/imscp_rootv1p1p2";
 
   63        $this->writer->xmlStartTag(
"manifest", $attrs);
 
   67        $this->writer->xmlStartTag(
"organizations", $attrs);
 
   71        $attrs[
"identifier"] = 
"il_" . 
IL_INST_ID . 
"_" . $this->cont_obj->getType() .
 
   72            "_" . $this->cont_obj->getId();
 
   73        $attrs[
"structure"] = 
"hierarchical";
 
   74        $this->writer->xmlStartTag(
"organization", $attrs);
 
   78        $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
 
   84        $this->writer->xmlEndTag(
"organization");
 
   87        $this->writer->xmlEndTag(
"organizations");
 
   91        $this->writer->xmlStartTag(
"resources", $attrs);
 
   97        $this->writer->xmlEndTag(
"resources");
 
  100        $this->writer->xmlEndTag(
"manifest");
 
  107        $this->writer->_XmlWriter;
 
  113    public function dump($a_target_dir)
 
  115        $this->writer->xmlDumpFile($a_target_dir . 
"/imsmanifest.xml", 
false);
 
  127        $attrs[
"identifier"] = 
"INDEX";
 
  128        $attrs[
"identifierref"] = 
"RINDEX";
 
  129        $this->writer->xmlStartTag(
"item", $attrs);
 
  133        $this->writer->xmlElement(
"title", $attrs, $this->cont_obj->getTitle());
 
  136        $this->writer->xmlEndTag(
"item");
 
  148        $attrs[
"identifier"] = 
"RINDEX";
 
  149        $attrs[
"type"] = 
"webcontent";
 
  150        $attrs[
"adlcp:scormtype"] = 
"asset";
 
  151        $attrs[
"href"] = 
"res/index.html";
 
  152        $this->writer->xmlElement(
"resource", $attrs, 
"");
 
An exception for terminatinating execution or to throw for unit testing.
Content Object (ILIAS native learning module / digilib book) Manifest export class.
__construct($a_cont_obj)
Constructor @access public.
buildManifest()
build manifest structure
writeResources()
write resources
dump($a_target_dir)
dump manifest file into directory
writeItemHierarchy()
write item hierarchy
xmlHeader()
Writes xml header @access public.