Class ilDataCollectionExporter.
More...
|
| init () |
|
| getValidSchemaVersions ($a_entity) |
|
| getXmlRepresentation ($a_entity, $a_schema_version, $a_id) |
|
| getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids) |
| MOB/File fieldtypes objects are head dependencies They must be exported and imported first, so the new DC has the new IDs of those objects available. More...
|
|
| getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids) |
|
| __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...
|
|
◆ getValidSchemaVersions()
ilDataCollectionExporter::getValidSchemaVersions |
( |
|
$a_entity | ) |
|
- Parameters
-
- Returns
- array
Definition at line 37 of file class.ilDataCollectionExporter.php.
41 'namespace' =>
'http://www.ilias.de/Modules/DataCollection/dcl/4_5',
42 'xsd_file" => "ilias_dcl_4_5.xsd',
43 'uses_dataset' =>
true,
◆ getXmlExportHeadDependencies()
ilDataCollectionExporter::getXmlExportHeadDependencies |
( |
|
$a_entity, |
|
|
|
$a_target_release, |
|
|
|
$a_ids |
|
) |
| |
MOB/File fieldtypes objects are head dependencies They must be exported and imported first, so the new DC has the new IDs of those objects available.
- Parameters
-
$a_entity | |
$a_target_release | |
$a_ids | |
- Returns
- array
Definition at line 70 of file class.ilDataCollectionExporter.php.
References ilDclDatatype\INPUTFORMAT_FILE, and ilDclDatatype\INPUTFORMAT_MOB.
72 $dependencies = array(
74 'component' =>
'Modules/File',
79 'component' =>
'Services/MediaObjects',
86 foreach ($a_ids as $dcl_obj_id) {
87 $sql =
"SELECT stloc2.value AS ext_id, f." . $this->db->quoteIdentifier(
'datatype_id') .
" FROM il_dcl_stloc2_value AS stloc2 " 88 .
"INNER JOIN il_dcl_record_field AS rf ON (rf." . $this->db->quoteIdentifier(
'id') .
" = stloc2." . $this->db->quoteIdentifier(
'record_field_id') .
") " 89 .
"INNER JOIN il_dcl_field AS f ON (rf." . $this->db->quoteIdentifier(
'field_id') .
" = f." . $this->db->quoteIdentifier(
'id') .
") " .
"INNER JOIN il_dcl_table AS t ON (t." 90 . $this->db->quoteIdentifier(
'id') .
" = f." . $this->db->quoteIdentifier(
'table_id') .
") " 91 .
"WHERE t." . $this->db->quoteIdentifier(
'obj_id') .
" = " . $this->db->quote($dcl_obj_id,
'integer') .
" " .
"AND f.datatype_id IN (" 92 . implode(
',', array_keys($dependencies)) .
") AND stloc2." . $this->db->quoteIdentifier(
'value') .
" IS NOT NULL";
93 $set = $this->db->query($sql);
94 while ($rec = $this->db->fetchObject($set)) {
95 $dependencies[$rec->datatype_id][
'ids'][] = (int) $rec->ext_id;
◆ getXmlExportTailDependencies()
ilDataCollectionExporter::getXmlExportTailDependencies |
( |
|
$a_entity, |
|
|
|
$a_target_release, |
|
|
|
$a_ids |
|
) |
| |
- Parameters
-
$a_entity | |
$a_target_release | |
$a_ids | |
- Returns
- array
Definition at line 119 of file class.ilDataCollectionExporter.php.
121 $page_object_ids = array();
122 foreach ($a_ids as $dcl_obj_id) {
124 $sql =
"SELECT page_id FROM page_object " 125 .
"WHERE parent_type = " . $this->db->quote(
'dclf',
'text') .
" AND parent_id = " . $this->db->quote($dcl_obj_id,
'integer');
126 $set = $this->db->query($sql);
127 while ($rec = $this->db->fetchObject($set)) {
128 $page_object_ids[] =
"dclf:" . $rec->page_id;
131 if (count($page_object_ids)) {
134 'component' =>
'Services/COPage',
136 'ids' => $page_object_ids,
◆ getXmlRepresentation()
ilDataCollectionExporter::getXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_schema_version, |
|
|
|
$a_id |
|
) |
| |
◆ init()
ilDataCollectionExporter::init |
( |
| ) |
|
◆ $db
ilDataCollectionExporter::$db |
|
protected |
◆ $ds
ilDataCollectionExporter::$ds |
|
protected |
The documentation for this class was generated from the following file: