ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAccessControlImporter.php
Go to the documentation of this file.
1<?php
2
19declare(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('components/ILIAS/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}
role role template xml importer
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
Import XML.
Class ilObjRole.
Description of class.
Xml importer class.