ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilAccessControlExporter Class Reference

Role Exporter. More...

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

Public Member Functions

 __construct ()
 Constructor. More...
 
 init ()
 Init export. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml. 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...
 

Private Attributes

 $writer = 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

Role Exporter.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilAccessControlExporter::__construct ( )

Constructor.

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

24  {
25 
26  }

Member Function Documentation

◆ getValidSchemaVersions()

ilAccessControlExporter::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.

Returns

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

83  {
84  return array (
85  "4.3.0" => array(
86  "namespace" => "http://www.ilias.de/AccessControl/Role/role/4_3",
87  "xsd_file" => "ilias_role_4_3.xsd",
88  "uses_dataset" => false,
89  "min" => "4.3.0",
90  "max" => "")
91  );
92  }

◆ getXmlExportHeadDependencies()

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

Get head dependencies.

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

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

45  {
46  return array();
47  }

◆ getXmlRepresentation()

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

Get xml.

Parameters
object$a_entity
object$a_schema_version
object$a_id
Returns

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

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

58  {
59  global $rbacreview;
60 
61  include_once './Services/AccessControl/classes/class.ilRoleXmlExport.php';
62  $writer = new ilRoleXmlExport();
63 
64  include_once './Services/Export/classes/class.ilExportOptions.php';
66  $eo->read();
67 
68  $rolf = $eo->getOptionByObjId($a_id,ilExportOptions::KEY_ROOT);
69  // @todo refactor rolf
70  $writer->setRoles(array($a_id => $rolf));
71  $writer->write();
72  return $writer->xmlDumpMem($format);
73  }
static getInstance()
Get singelton instance.
Xml export of roles and role templates.
+ Here is the call graph for this function:

◆ init()

ilAccessControlExporter::init ( )

Init export.

Returns

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

33  {
34  }

Field Documentation

◆ $writer

ilAccessControlExporter::$writer = null
private

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

Referenced by getXmlRepresentation().


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