4include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
 
   23                include_once(
"./Services/COPage/classes/class.ilCOPageDataSet.php");
 
   25                $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
 
   26                $this->ds->setDSPrefix(
"ds");
 
   27                $this->config = $this->
getExport()->getConfig(
"Services/COPage");
 
   28                if ($this->config->getMasterLanguageOnly())
 
   30                        $this->ds->setMasterLanguageOnly(
true);
 
   45                if ($a_entity == 
"pg")
 
   48                        include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
 
   49                        include_once(
"./Modules/File/classes/class.ilObjFile.php");
 
   52                        foreach ($a_ids as $pg_id)
 
   54                                $pg_id = explode(
":", $pg_id);
 
   56                                $lang = ($this->config->getMasterLanguageOnly())
 
   62                                foreach ($mids as $mid)
 
   72                                foreach ($files as 
$file)
 
   83                                        "component" => 
"Services/MediaObjects",
 
   87                                        "component" => 
"Modules/File",
 
  106                if ($a_entity == 
"pgtp")
 
  109                        foreach ($a_ids as $id)
 
  111                                $pg_ids[] = 
"stys:".$id;
 
  116                                        "component" => 
"Services/COPage",
 
  136                if ($a_entity == 
"pg")
 
  138                        include_once(
"./Services/COPage/classes/class.ilPageObject.php");
 
  140                        $id = explode(
":", $a_id);
 
  143                        if (!$this->config->getMasterLanguageOnly())
 
  146                                foreach ($trans as 
$t)
 
  155                        include_once(
"./Services/COPage/classes/class.ilPageObjectFactory.php");
 
  157                        foreach ($langs as 
$l)
 
  160                                $page_object->buildDom();
 
  161                                $page_object->insertInstIntoIDs(IL_INST_ID);
 
  162                                $pxml = $page_object->getXMLFromDom(
false, 
false, 
false, 
"", 
true);
 
  163                                $pxml = str_replace(
"&",
"&", $pxml);
 
  164                                $xml.= 
'<PageObject Language="'.$l.
'" Active="'.$page_object->getActive().
'" ActivationStart="'.$page_object->getActivationStart().
'" ActivationEnd="'.
 
  165                                        $page_object->getActivationEnd().
'" ShowActivationInfo="'.$page_object->getShowActivationInfo().
'">';
 
  167                                $xml.= 
"</PageObject>";
 
  168                                $page_object->freeDom();
 
  173                if ($a_entity == 
"pgtp")
 
  175                        return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, 
"", 
true, 
true);
 
  188                if ($a_entity == 
"pg")
 
  192                                        "namespace" => 
"http://www.ilias.de/Services/COPage/pg/4_2",
 
  193                                        "xsd_file" => 
"ilias_pg_4_2.xsd",
 
  197                                        "namespace" => 
"http://www.ilias.de/Services/COPage/pg/4_1",
 
  198                                        "xsd_file" => 
"ilias_pg_4_1.xsd",
 
  203                if ($a_entity == 
"pgtp")
 
  207                                        "namespace" => 
"http://www.ilias.de/Services/COPage/pgtp/4_1",
 
  208                                        "xsd_file" => 
"ilias_pgtp_4_1.xsd",
 
  209                                        "uses_dataset" => 
true,
 
Exporter class for meta data.
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
static _getFilesOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_usage_lang="-")
get all files of an object
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.
static lookupTranslations($a_parent_type, $a_id)
Lookup translations.