Folder export.
More...
|
| __construct () |
| Constructor. More...
|
|
| init () |
| Init export. More...
|
|
| getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids) |
| Get head dependencies. More...
|
|
| getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids) |
|
| getXmlRepresentation ($a_entity, $a_schema_version, $a_id) |
| Get xml. More...
|
|
| getValidSchemaVersions ($a_entity) |
| Returns schema versions that the component can export to. More...
|
|
| __construct () |
| Constructor. More...
|
|
| setExport (ilExport $a_exp) |
| Set export object. More...
|
|
| getExport () |
| Get export. More...
|
|
| getXmlRepresentation ($a_entity, $a_schema_version, $a_id) |
| Get xml representation. More...
|
|
| init () |
|
| setExportDirectories ($a_dir_relative, $a_dir_absolute) |
| Export directories. More...
|
|
| getRelativeExportDirectory () |
| Get relative export directory. More...
|
|
| getAbsoluteExportDirectory () |
| Get absolute export directory. More...
|
|
| getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids) |
| Get head dependencies. More...
|
|
| getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids) |
| Get tail dependencies. More...
|
|
| getValidSchemaVersions ($a_entity) |
| Returns schema versions that the component can export to. More...
|
|
| determineSchemaVersion ($a_entity, $a_target_release) |
| Determine schema version. More...
|
|
Folder export.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 17 of file class.ilCourseExporter.php.
◆ __construct()
ilCourseExporter::__construct |
( |
| ) |
|
◆ getValidSchemaVersions()
ilCourseExporter::getValidSchemaVersions |
( |
|
$a_entity | ) |
|
Returns schema versions that the component can export to.
ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top.
- Returns
Definition at line 152 of file class.ilCourseExporter.php.
156 "namespace" =>
"http://www.ilias.de/Modules/Course/crs/4_1",
157 "xsd_file" =>
"ilias_course_4_1.xsd",
158 "uses_dataset" =>
false,
162 "namespace" =>
"http://www.ilias.de/Modules/Course/crs/5_0",
163 "xsd_file" =>
"ilias_crs_5_0.xsd",
164 "uses_dataset" =>
false,
◆ getXmlExportHeadDependencies()
ilCourseExporter::getXmlExportHeadDependencies |
( |
|
$a_entity, |
|
|
|
$a_target_release, |
|
|
|
$a_ids |
|
) |
| |
Get head dependencies.
- Parameters
-
string | entity |
string | target release |
array | ids |
- Returns
- array array of array with keys "component", entity", "ids"
Definition at line 53 of file class.ilCourseExporter.php.
55 if ($a_entity != self::ENTITY_MAIN) {
62 'component' =>
'Services/Container',
◆ getXmlExportTailDependencies()
ilCourseExporter::getXmlExportTailDependencies |
( |
|
$a_entity, |
|
|
|
$a_target_release, |
|
|
|
$a_ids |
|
) |
| |
Definition at line 70 of file class.ilCourseExporter.php.
References ilCourseObjective\_getObjectiveIds(), and ilPageObject\getAllPages().
72 $dependencies = array();
73 if ($a_entity == self::ENTITY_MAIN) {
75 foreach ($a_ids as $id) {
79 $dependencies[] = array(
80 'component' =>
'Modules/Course',
81 'entity' => self::ENTITY_OBJECTIVE,
85 include_once
'./Modules/Course/classes/Objectives/class.ilLOPage.php';
86 include_once
'./Modules/Course/classes/class.ilCourseObjective.php';
90 $page_ids[] = (
'lobj:' . $page_id[
'id']);
95 $dependencies[] = array(
96 'component' =>
'Services/COPage',
102 return $dependencies;
static _getObjectiveIds($course_id, $a_activated_only=false)
static getAllPages($a_parent_type, $a_parent_id, $a_lang="-")
Get all pages for parent object.
◆ getXmlRepresentation()
ilCourseExporter::getXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_schema_version, |
|
|
|
$a_id |
|
) |
| |
Get xml.
- Parameters
-
object | $a_entity | |
object | $a_schema_version | |
object | $a_id | |
- Returns
Definition at line 114 of file class.ilCourseExporter.php.
References $writer, ilObject\_getAllReferences(), ilObjectFactory\getInstanceByRefId(), and ilCourseXMLWriter\MODE_EXPORT.
120 if ($a_entity == self::ENTITY_OBJECTIVE) {
122 include_once
'./Modules/Course/classes/Objectives/class.ilLOXmlWriter.php';
127 $this->logger->error(
'Export failed with message: ' . $ex->getMessage());
135 $this->logger->warning($a_id .
' is not id of course instance.');
141 $this->writer->start();
142 return $this->writer->xmlDumpMem(
false);
static _getAllReferences($a_id)
get all reference ids of object
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
◆ init()
ilCourseExporter::init |
( |
| ) |
|
◆ $logger
ilCourseExporter::$logger = null |
|
protected |
◆ $writer
ilCourseExporter::$writer = null |
|
private |
◆ ENTITY_MAIN
const ilCourseExporter::ENTITY_MAIN = 'crs' |
◆ ENTITY_OBJECTIVE
const ilCourseExporter::ENTITY_OBJECTIVE = 'objectives' |
The documentation for this class was generated from the following file: