ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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  }
27 
32  public function init()
33  {
34  }
35 
44  public function getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
45  {
46  return array();
47  }
48 
49 
57  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
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 
70  #$rolfs = $rbacreview->getFoldersAssignedToRole($a_id,false);
71  #$rolf = end($rolfs);
72 
73  $writer->setRoles(array($a_id => $rolf));
74  $writer->write();
75  return $writer->xmlDumpMem($format);
76  }
77 
85  public function getValidSchemaVersions($a_entity)
86  {
87  return array (
88  "4.3.0" => array(
89  "namespace" => "http://www.ilias.de/AccessControl/Role/role/4_3",
90  "xsd_file" => "ilias_role_4_3.xsd",
91  "uses_dataset" => false,
92  "min" => "4.3.0",
93  "max" => "")
94  );
95  }
96 }
97 ?>