ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAccessControlExporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
26{
27 public function init(): void
28 {
29 }
30
38 public function getXmlExportHeadDependencies(string $a_entity, string $a_target_release, array $a_ids): array
39 {
40 return [];
41 }
42
46 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
47 {
48 global $DIC;
49
50 $writer = new ilRoleXmlExport();
51
53 $eo->read();
54
55 $rolf = $eo->getOptionByObjId((int) $a_id, ilExportOptions::KEY_ROOT);
56 $writer->setRoles([(int) $a_id => (int) $rolf]);
57 $writer->write();
58 return $writer->xmlDumpMem(false);
59 }
60
66 public function getValidSchemaVersions(string $a_entity): array
67 {
68 return [
69 "4.3.0" => [
70 "namespace" => "http://www.ilias.de/AccessControl/Role/role/4_3",
71 "xsd_file" => "ilias_role_4_3.xsd",
72 "uses_dataset" => false,
73 "min" => "4.3.0",
74 "max" => ""
75 ]
76 ];
77 }
78}
getXmlExportHeadDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get head dependencies.
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Get xml.
Xml export of roles and role templates.
Xml Exporter class.
global $DIC
Definition: shib_login.php:26