ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAccessControlExporter Class Reference

Role Exporter. More...

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

Public Member Functions

 __construct ()
 Constructor.
 init ()
 Init export.
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies.
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml.
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to.
- Public Member Functions inherited from ilXmlExporter
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories.
 getRelativeExportDirectory ()
 Get relative export directory.
 getAbsoluteExportDirectory ()
 Get absolute export directory.
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies.
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version.

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
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 $dir_absolute

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

ilAccessControlExporter::__construct ( )

Constructor.

Reimplemented from ilXmlExporter.

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

{
}

Member Function Documentation

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

Reimplemented from ilXmlExporter.

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

{
return array (
"4.3.0" => array(
"namespace" => "http://www.ilias.de/AccessControl/Role/role/4_3",
"xsd_file" => "ilias_role_4_3.xsd",
"uses_dataset" => false,
"min" => "4.3.0",
"max" => "")
);
}
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"

Reimplemented from ilXmlExporter.

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

{
return array();
}
ilAccessControlExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Get xml.

Parameters
object$a_entity
object$a_schema_version
object$a_id
Returns

Reimplemented from ilXmlExporter.

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

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

{
global $rbacreview;
include_once './Services/AccessControl/classes/class.ilRoleXmlExport.php';
include_once './Services/Export/classes/class.ilExportOptions.php';
$eo->read();
$rolf = $eo->getOptionByObjId($a_id,ilExportOptions::KEY_ROOT);
#$rolfs = $rbacreview->getFoldersAssignedToRole($a_id,false);
#$rolf = end($rolfs);
$writer->setRoles(array($a_id => $rolf));
$writer->write();
return $writer->xmlDumpMem($format);
}

+ Here is the call graph for this function:

ilAccessControlExporter::init ( )

Init export.

Returns

Reimplemented from ilXmlExporter.

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

{
}

Field Documentation

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: