ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilAccessControlImporter.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 include_once("./Services/Export/classes/class.ilXmlImporter.php");
5 
16 {
17  public function init()
18  {
19  }
20 
27  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
28  {
29  $role_folder_id = $a_mapping->getMapping('Services/AccessControl','rolf',0);
30 
31  include_once './Services/AccessControl/classes/class.ilRoleXmlImporter.php';
32  include_once './Services/AccessControl/classes/class.ilObjRole.php';
33  $importer = new ilRoleXmlImporter($role_folder_id);
34  $importer->setXml($a_xml);
35  $importer->setRole(new ilObjRole());
36  $importer->import();
37  }
38 }
39 ?>