4 include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
22 include_once(
"./Services/COPage/classes/class.ilCOPageDataSet.php");
24 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25 $this->ds->setDSPrefix(
"ds");
39 if ($a_entity ==
"pg")
42 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
43 include_once(
"./Modules/File/classes/class.ilObjFile.php");
46 foreach ($a_ids as $pg_id)
48 $pg_id = explode(
":", $pg_id);
52 foreach ($mids as $mid)
62 foreach ($files as
$file)
73 "component" =>
"Services/MediaObjects",
77 "component" =>
"Modules/File",
96 if ($a_entity ==
"pgtp")
99 foreach ($a_ids as $id)
101 $pg_ids[] =
"stys:".$id;
106 "component" =>
"Services/COPage",
126 if ($a_entity ==
"pg")
128 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
130 $id = explode(
":", $a_id);
133 $page_object->buildDom();
134 $page_object->insertInstIntoIDs(IL_INST_ID);
135 $pxml = $page_object->getXMLFromDom(
false,
false,
false,
"",
true);
136 $pxml = str_replace(
"&",
"&", $pxml);
137 $xml =
"<PageObject>";
139 $xml.=
"</PageObject>";
140 $page_object->freeDom();
144 if ($a_entity ==
"pgtp")
146 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
"",
true,
true);
159 if ($a_entity ==
"pg")
163 "namespace" =>
"http://www.ilias.de/Services/COPage/pg/4_2",
164 "xsd_file" =>
"ilias_pg_4_2.xsd",
168 "namespace" =>
"http://www.ilias.de/Services/COPage/pg/4_1",
169 "xsd_file" =>
"ilias_pg_4_1.xsd",
174 if ($a_entity ==
"pgtp")
178 "namespace" =>
"http://www.ilias.de/Services/COPage/pgtp/4_1",
179 "xsd_file" =>
"ilias_pgtp_4_1.xsd",
180 "uses_dataset" =>
true,