ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilCmiXapiExporter Class Reference
+ Inheritance diagram for ilCmiXapiExporter:
+ Collaboration diagram for ilCmiXapiExporter:

Public Member Functions

 __construct ()
 Constructor. More...
 
 init ()
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
- Public Member Functions inherited from ilXmlExporter
 __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...
 

Data Fields

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

Private Attributes

 $main_object = null
 
 $_dataset = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilCmiXapiExporter::__construct ( )

Constructor.

Parameters

return

Reimplemented from ilXmlExporter.

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

24 {
26 include_once("./Modules/CmiXapi/classes/class.ilCmiXapiDataSet.php");
27 $this->_dataset = new ilCmiXapiDataSet();
28 $this->_dataset->setExportDirectories($this->dir_relative, $this->dir_absolute);
29 $this->_dataset->setDSPrefix("ds");
30
31 /*
32 $this->main_object = $a_main_object;
33 include_once("./Modules/CmiXapi/classes/class.ilCmiXapiDataSet.php");
34 $this->dataset = new ilCmiXapiDataSet($this->main_object->getRefId());
35 $this->getXmlRepresentation(self::ENTITY, self::SCHEMA_VERSION, $this->main_object->getRefId());
36 */
37 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getValidSchemaVersions()

ilCmiXapiExporter::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. Example:

            return array (
    "4.1.0" => array(
            "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1",
            "xsd_file" => "ilias_md_4_1.xsd",
            "min" => "4.1.0",
            "max" => "")
    );
Returns
array

Reimplemented from ilXmlExporter.

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

58 {
59 return array(
60 "5.1.0" => array(
61 "namespace" => "http://www.ilias.de/Modules/CmiXapi/cmix/5_1",
62 "xsd_file" => "xml/ilias_cmix_5_1.xsd",
63 "uses_dataset" => true,
64 "min" => "5.1.0",
65 "max" => "")
66 );
67 }

◆ getXmlRepresentation()

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

Get xml representation.

Parameters
stringentity
stringtarget release
stringid
Returns
string xml string

Reimplemented from ilXmlExporter.

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

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

◆ init()

ilCmiXapiExporter::init ( )

Reimplemented from ilXmlExporter.

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

40 {
41 }

Field Documentation

◆ $_dataset

ilCmiXapiExporter::$_dataset = null
private

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

◆ $main_object

ilCmiXapiExporter::$main_object = null
private

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

◆ ENTITY

const ilCmiXapiExporter::ENTITY = 'cmix'

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

◆ SCHEMA_VERSION

const ilCmiXapiExporter::SCHEMA_VERSION = '5.1.0'

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


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