ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAccessControlExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
5 include_once './Services/Export/classes/class.ilXmlExporter.php';
6 
17 {
18  private $writer = null;
19 
23  public function __construct()
24  {
25  }
26 
31  public function init()
32  {
33  }
34 
43  public function getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
44  {
45  return array();
46  }
47 
48 
56  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
57  {
58  global $rbacreview;
59 
60  include_once './Services/AccessControl/classes/class.ilRoleXmlExport.php';
61  $writer = new ilRoleXmlExport();
62 
63  include_once './Services/Export/classes/class.ilExportOptions.php';
65  $eo->read();
66 
67  $rolf = $eo->getOptionByObjId($a_id, ilExportOptions::KEY_ROOT);
68  // @todo refactor rolf
69  $writer->setRoles(array($a_id => $rolf));
70  $writer->write();
71  return $writer->xmlDumpMem($format);
72  }
73 
81  public function getValidSchemaVersions($a_entity)
82  {
83  return array(
84  "4.3.0" => array(
85  "namespace" => "http://www.ilias.de/AccessControl/Role/role/4_3",
86  "xsd_file" => "ilias_role_4_3.xsd",
87  "uses_dataset" => false,
88  "min" => "4.3.0",
89  "max" => "")
90  );
91  }
92 }
$format
Definition: metadata.php:141
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
static getInstance()
Get singelton instance.
Xml Exporter class.
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
Create styles array
The data for the language used.
Xml export of roles and role templates.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml.