5include_once 
'./Modules/Course/classes/class.ilCourseXMLWriter.php';
 
    6include_once 
'./Services/Export/classes/class.ilXmlExporter.php';
 
   34                $this->logger = 
$GLOBALS[
'DIC']->logger()->crs();
 
   56                if($a_entity != self::ENTITY_MAIN)
 
   64                                'component'             => 
'Services/Container',
 
   74                $dependencies = array();
 
   75                if($a_entity == self::ENTITY_MAIN)
 
   78                        foreach($a_ids as $id)
 
   83                        $dependencies[] = array(
 
   84                                        'component'                     => 
'Modules/Course',
 
   85                                        'entity'                        => self::ENTITY_OBJECTIVE,
 
   89                        include_once 
'./Modules/Course/classes/Objectives/class.ilLOPage.php';
 
   90                        include_once 
'./Modules/Course/classes/class.ilCourseObjective.php';
 
   96                                        $page_ids[] = (
'lobj:'.$page_id[
'id']);
 
  102                                $dependencies[] = array(
 
  103                                        'component' => 
'Services/COPage',
 
  112                return $dependencies;
 
  130                if($a_entity == self::ENTITY_OBJECTIVE)
 
  133                                include_once 
'./Modules/Course/classes/Objectives/class.ilLOXmlWriter.php';
 
  138                        catch (Exception $ex) {
 
  139                                $this->logger->error(
'Export failed with message: ' . $ex->getMessage());
 
  148                        $this->logger->warning($a_id .
' is not id of course instance.');
 
  154                $this->writer->start();
 
  155                return $this->writer->xmlDumpMem(
false);
 
  169                                "namespace" => 
"http://www.ilias.de/Modules/Course/crs/4_1",
 
  170                                "xsd_file" => 
"ilias_course_4_1.xsd",
 
  171                                "uses_dataset" => 
false,
 
  175                                "namespace" => 
"http://www.ilias.de/Modules/Course/crs/5_0",
 
  176                                "xsd_file" => 
"ilias_crs_5_0.xsd",
 
  177                                "uses_dataset" => 
false,
 
An exception for terminatinating execution or to throw for unit testing.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml.
__construct()
Constructor.
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
static _getObjectiveIds($course_id, $a_activated_only=false)
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
static _getAllReferences($a_id)
get all reference ids of object
static getAllPages($a_parent_type, $a_parent_id, $a_lang="-")
Get all pages for parent object.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.