ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
5include_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';
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 }
74
82 public function getValidSchemaVersions($a_entity)
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 }
93}
94?>
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml.
getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids)
Get head dependencies.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
static getInstance()
Get singelton instance.
Xml export of roles and role templates.
Xml Exporter class.