ILIAS  release_8 Revision v8.24
class.ilCmiXapiExporter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public const ENTITY = 'cmix';
33 public const SCHEMA_VERSION = '5.1.0';
34
35// private $main_object = null;
36 private ?ilCmiXapiDataSet $_dataset = null;
37
38 public function __construct()
39 {
41 $this->_dataset = new ilCmiXapiDataSet();
42 $this->_dataset->setExportDirectories($this->dir_relative, $this->dir_absolute);
43 $this->_dataset->setDSPrefix("ds");
44
45 /*
46 $this->main_object = $a_main_object;
47 include_once("./Modules/CmiXapi/classes/class.ilCmiXapiDataSet.php");
48 $this->dataset = new ilCmiXapiDataSet($this->main_object->getRefId());
49 $this->getXmlRepresentation(self::ENTITY, self::SCHEMA_VERSION, $this->main_object->getRefId());
50 */
51 }
52
53 public function init(): void
54 {
55 }
56
60 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
61 {
62 return $this->_dataset->getCmiXapiXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
63 }
64
68 public function getValidSchemaVersions(string $a_entity): array
69 {
70 return array(
71 "5.1.0" => array(
72 "namespace" => "http://www.ilias.de/Modules/CmiXapi/cmix/5_1",
73 "xsd_file" => "xml/ilias_cmix_5_1.xsd",
74 "uses_dataset" => true,
75 "min" => "5.1.0",
76 "max" => "")
77 );
78 }
79}
ilCmiXapiDataSet $_dataset
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Get xml representation.
getValidSchemaVersions(string $a_entity)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc