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);
132 include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
134 $page_object->buildDom();
135 $page_object->insertInstIntoIDs(IL_INST_ID);
136 $pxml = $page_object->getXMLFromDom(
false,
false,
false,
"",
true);
137 $pxml = str_replace(
"&",
"&", $pxml);
138 $xml =
"<PageObject>";
140 $xml.=
"</PageObject>";
141 $page_object->freeDom();
145 if ($a_entity ==
"pgtp")
147 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
"",
true,
true);
160 if ($a_entity ==
"pg")
164 "namespace" =>
"http://www.ilias.de/Services/COPage/pg/4_2",
165 "xsd_file" =>
"ilias_pg_4_2.xsd",
169 "namespace" =>
"http://www.ilias.de/Services/COPage/pg/4_1",
170 "xsd_file" =>
"ilias_pg_4_1.xsd",
175 if ($a_entity ==
"pgtp")
179 "namespace" =>
"http://www.ilias.de/Services/COPage/pgtp/4_1",
180 "xsd_file" =>
"ilias_pgtp_4_1.xsd",
181 "uses_dataset" =>
true,
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
_getFilesOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_usage_lang="-")
get all files of an object
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
static _lookupType($a_id, $a_reference=false)
lookup object type
static getInstance($a_parent_type, $a_id=0, $a_old_nr=0, $a_lang="-")
Get page object instance.
Exporter class for meta data.