| 
|   | init () | 
|   | 
|   | getValidSchemaVersions (string $a_entity) | 
|   | 
|   | getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id) | 
|   | 
|   | getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $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 (string $a_entity, string $a_target_release, array $a_ids) | 
|   | 
|   | __construct () | 
|   | 
|   | setExport (ilExport $a_exp) | 
|   | 
|   | getExport () | 
|   | 
|   | getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id) | 
|   | 
|   | init () | 
|   | 
|   | setExportDirectories (string $a_dir_relative, string $a_dir_absolute) | 
|   | 
|   | getRelativeExportDirectory () | 
|   | 
|   | getAbsoluteExportDirectory () | 
|   | 
|   | getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids) | 
|   | Get head dependencies.  More...
  | 
|   | 
|   | getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids) | 
|   | Get tail dependencies.  More...
  | 
|   | 
|   | getValidSchemaVersions (string $a_entity) | 
|   | Returns schema versions that the component can export to.  More...
  | 
|   | 
|   | determineSchemaVersion (string $a_entity, string $a_target_release) | 
|   | 
 | 
| static  | lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="") | 
|   | 
◆ getValidSchemaVersions()
      
        
          | ilDataCollectionExporter::getValidSchemaVersions  | 
          ( | 
          string  | 
          $a_entity | ) | 
           | 
        
      
 
- Parameters
 - 
  
  
 
- Returns
 - array 
 
Definition at line 39 of file class.ilDataCollectionExporter.php.
   43                 'namespace' => 
'https://www.ilias.de/Modules/DataCollection/dcl/4_5',
    44                 'xsd_file" => "ilias_dcl_4_5.xsd',
    45                 'uses_dataset' => 
true,
    50                 'namespace' => 
'https://www.ilias.de/Modules/DataCollection/dcl/4_5',
    51                 'xsd_file" => "ilias_dcl_4_5.xsd',
    52                 'uses_dataset' => 
true,
  
 
 
◆ getXmlExportHeadDependencies()
      
        
          | ilDataCollectionExporter::getXmlExportHeadDependencies  | 
          ( | 
          string  | 
          $a_entity,  | 
        
        
           | 
           | 
          string  | 
          $a_target_release,  | 
        
        
           | 
           | 
          array  | 
          $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
 - 
  
    | string | $a_entity |  | 
    | string | $a_target_release |  | 
    | array | $a_ids |  | 
  
   
- Returns
 - array 
 
Definition at line 75 of file class.ilDataCollectionExporter.php.
References ilDclDatatype\INPUTFORMAT_FILEUPLOAD, ilDclDatatype\INPUTFORMAT_MOB, and ILIAS\Repository\int().
   79                 'component' => 
'Modules/File',
    84                 'component' => 
'Services/MediaObjects',
    91         foreach ($a_ids as $dcl_obj_id) {
    92             $sql = 
"SELECT stloc2.value AS ext_id, f." . $this->db->quoteIdentifier(
'datatype_id') . 
" FROM il_dcl_stloc2_value AS stloc2 "    93                 . 
"INNER JOIN il_dcl_record_field AS rf ON (rf." . $this->db->quoteIdentifier(
'id') . 
" = stloc2." . $this->db->quoteIdentifier(
'record_field_id') . 
") "    94                 . 
"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."    95                 . $this->db->quoteIdentifier(
'id') . 
" = f." . $this->db->quoteIdentifier(
'table_id') . 
") "    96                 . 
"WHERE t." . $this->db->quoteIdentifier(
'obj_id') . 
" = " . $this->db->quote(
    99                 ) . 
" " . 
"AND f.datatype_id IN ("   102                     array_keys($dependencies)
   103                 ) . 
") AND stloc2." . $this->db->quoteIdentifier(
'value') . 
" IS NOT NULL";
   104             $set = $this->db->query($sql);
   105             while ($rec = $this->db->fetchObject($set)) {
   106                 $dependencies[$rec->datatype_id][
'ids'][] = (
int) $rec->ext_id;
 
const INPUTFORMAT_FILEUPLOAD
 
 
 
 
◆ getXmlExportTailDependencies()
      
        
          | ilDataCollectionExporter::getXmlExportTailDependencies  | 
          ( | 
          string  | 
          $a_entity,  | 
        
        
           | 
           | 
          string  | 
          $a_target_release,  | 
        
        
           | 
           | 
          array  | 
          $a_ids  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | string | $a_entity |  | 
    | string | $a_target_release |  | 
    | array | $a_ids |  | 
  
   
- Returns
 - array 
 
Definition at line 128 of file class.ilDataCollectionExporter.php.
  130         $page_object_ids = [];
   131         foreach ($a_ids as $dcl_obj_id) {
   133             $sql = 
"SELECT page_id FROM page_object "   134                 . 
"WHERE parent_type = " . $this->db->quote(
   137                 ) . 
" AND parent_id = " . $this->db->quote($dcl_obj_id, 
'integer');
   138             $set = $this->db->query($sql);
   139             while ($rec = $this->db->fetchObject($set)) {
   140                 $page_object_ids[] = 
"dclf:" . $rec->page_id;
   143         if (count($page_object_ids)) {
   146                     'component' => 
'Services/COPage',
   148                     'ids' => $page_object_ids,
  
 
 
◆ getXmlRepresentation()
      
        
          | ilDataCollectionExporter::getXmlRepresentation  | 
          ( | 
          string  | 
          $a_entity,  | 
        
        
           | 
           | 
          string  | 
          $a_schema_version,  | 
        
        
           | 
           | 
          string  | 
          $a_id  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ init()
      
        
          | ilDataCollectionExporter::init  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ $db
◆ $ds
The documentation for this class was generated from the following file: