ILIAS  release_8 Revision v8.23
ilAccessControlExporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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
string $dir_relative = ""
 
string $dir_absolute = ""
 
ilExport $exp
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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.

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

66  : array
67  {
68  return array(
69  "4.3.0" => array(
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"

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.

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

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

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(array((int) $a_id => (int) $rolf));
57  $writer->write();
58  return $writer->xmlDumpMem(false);
59  }
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ init()

ilAccessControlExporter::init ( )

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

27  : void
28  {
29  }

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