5 include_once
'./Modules/Course/classes/class.ilCourseXMLWriter.php';
6 include_once
'./Services/Export/classes/class.ilXmlExporter.php';
50 if($a_entity != self::ENTITY_MAIN)
58 'component' =>
'Services/Container',
68 $dependencies = array();
69 if($a_entity == self::ENTITY_MAIN)
72 foreach($a_ids as $id)
77 $dependencies[] = array(
78 'component' =>
'Modules/Course',
79 'entity' => self::ENTITY_OBJECTIVE,
83 include_once
'./Modules/Course/classes/Objectives/class.ilLOPage.php';
84 include_once
'./Modules/Course/classes/class.ilCourseObjective.php';
90 $page_ids[] = (
'lobj:'.$page_id[
'id']);
96 $dependencies[] = array(
97 'component' =>
'Services/COPage',
106 return $dependencies;
124 if($a_entity == self::ENTITY_OBJECTIVE)
127 include_once
'./Modules/Course/classes/Objectives/class.ilLOXmlWriter.php';
140 $GLOBALS[
'ilLog']->write(__METHOD__. $a_id .
' is not instance of type course');
146 $this->writer->start();
147 return $this->writer->xmlDumpMem(
false);
161 "namespace" =>
"http://www.ilias.de/Modules/Course/crs/4_1",
162 "xsd_file" =>
"ilias_course_4_1.xsd",
163 "uses_dataset" =>
false,
167 "namespace" =>
"http://www.ilias.de/Modules/Course/crs/5_0",
168 "xsd_file" =>
"ilias_crs_5_0.xsd",
169 "uses_dataset" =>
false,
getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml.
static _getObjectiveIds($course_id, $a_activated_only=false)
static getAllPages($a_parent_type, $a_parent_id, $a_lang="-")
Get all pages for parent object.
__construct()
Constructor.
static _getAllReferences($a_id)
get all reference ids of object
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)