ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilCmiXapiExporter Class Reference
+ Inheritance diagram for ilCmiXapiExporter:
+ Collaboration diagram for ilCmiXapiExporter:

Public Member Functions

 __construct ()
 
 init ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 Get xml representation. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 
 getValidSchemaVersions (string $a_entity)
 
- Public Member Functions inherited from ilXmlExporter
 __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)
 

Data Fields

const ENTITY = 'cmix'
 
const SCHEMA_VERSION = '5.1.0'
 

Private Attributes

ilCmiXapiDataSet $_dataset = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 
- Protected Attributes inherited from ilXmlExporter
ilExport $exp
 

Detailed Description

Definition at line 30 of file class.ilCmiXapiExporter.php.

Constructor & Destructor Documentation

◆ __construct()

ilCmiXapiExporter::__construct ( )

Definition at line 38 of file class.ilCmiXapiExporter.php.

References ILIAS\GlobalScreen\Provider\__construct().

39  {
41  $this->_dataset = new ilCmiXapiDataSet();
42  $this->_dataset->setDSPrefix("ds");
43  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getValidSchemaVersions()

ilCmiXapiExporter::getValidSchemaVersions ( string  $a_entity)
Returns
array<string, array<string, string|bool>>

Definition at line 82 of file class.ilCmiXapiExporter.php.

82  : array
83  {
84  return array(
85  "5.1.0" => array(
86  "namespace" => "http://www.ilias.de/Modules/CmiXapi/cmix/5_1",
87  "xsd_file" => "xml/ilias_cmix_5_1.xsd",
88  "uses_dataset" => true,
89  "min" => "5.1.0",
90  "max" => "")
91  );
92  }

◆ getXmlExportTailDependencies()

ilCmiXapiExporter::getXmlExportTailDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Definition at line 57 of file class.ilCmiXapiExporter.php.

References $id.

61  : array {
62  $dependencies = [];
63 
64  $md_ids = [];
65  foreach ($a_ids as $id) {
66  $md_ids[] = $id . ":0:cmix";
67  }
68  if ($md_ids !== []) {
69  $dependencies[] = [
70  "component" => "components/ILIAS/MetaData",
71  "entity" => "md",
72  "ids" => $md_ids
73  ];
74  }
75 
76  return $dependencies;
77  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24

◆ getXmlRepresentation()

ilCmiXapiExporter::getXmlRepresentation ( string  $a_entity,
string  $a_schema_version,
string  $a_id 
)

Get xml representation.

Definition at line 52 of file class.ilCmiXapiExporter.php.

52  : string
53  {
54  return $this->_dataset->getCmiXapiXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
55  }

◆ init()

ilCmiXapiExporter::init ( )

Definition at line 45 of file class.ilCmiXapiExporter.php.

45  : void
46  {
47  }

Field Documentation

◆ $_dataset

ilCmiXapiDataSet ilCmiXapiExporter::$_dataset = null
private

Definition at line 36 of file class.ilCmiXapiExporter.php.

◆ ENTITY

const ilCmiXapiExporter::ENTITY = 'cmix'

Definition at line 32 of file class.ilCmiXapiExporter.php.

◆ SCHEMA_VERSION

const ilCmiXapiExporter::SCHEMA_VERSION = '5.1.0'

Definition at line 33 of file class.ilCmiXapiExporter.php.


The documentation for this class was generated from the following file: