ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAccessControlExporter Class Reference

Role Exporter. More...

+ Inheritance diagram for ilAccessControlExporter:
+ Collaboration diagram for ilAccessControlExporter:

Public Member Functions

 init ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 Get xml. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
- 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)
 

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

Role Exporter.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 25 of file class.ilAccessControlExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilAccessControlExporter::getValidSchemaVersions ( string  $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.

Reimplemented from ilXmlExporter.

Definition at line 66 of file class.ilAccessControlExporter.php.

66 : 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 }

◆ getXmlExportHeadDependencies()

ilAccessControlExporter::getXmlExportHeadDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Get head dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

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

38 : array
39 {
40 return [];
41 }

◆ getXmlRepresentation()

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

Get xml.

Reimplemented from ilXmlExporter.

Definition at line 46 of file class.ilAccessControlExporter.php.

46 : 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 }
Xml export of roles and role templates.
global $DIC
Definition: shib_login.php:26

References $DIC, ilExportOptions\getInstance(), and ilExportOptions\KEY_ROOT.

+ Here is the call graph for this function:

◆ init()

ilAccessControlExporter::init ( )

Reimplemented from ilXmlExporter.

Definition at line 27 of file class.ilAccessControlExporter.php.

27 : void
28 {
29 }

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