ILIAS  release_8 Revision v8.24
class.ilAccessControlImporter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
26{
27 public function init(): void
28 {
29 }
30
35 public function importXmlRepresentation(
36 string $a_entity,
37 string $a_id,
38 string $a_xml,
39 ilImportMapping $a_mapping
40 ): void {
41 $role_folder_id = $a_mapping->getMapping('Services/AccessControl', 'rolf', (string) 0);
42
43 $importer = new ilRoleXmlImporter((int) $role_folder_id);
44 $importer->setXml($a_xml);
45 $importer->setRole(new ilObjRole());
46 $importer->import();
47 }
48}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
Import XML.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjRole.
Description of class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...