3 declare(strict_types=1);
    39         $this->rbacreview = $DIC->rbac()->review();
    51         $this->roles = $a_roles;
    59     public function addRole(
int $a_role_id, 
int $a_rolf_id): void
    61         $this->roles[$a_role_id][] = $a_rolf_id;
    64     public function setMode(
int $a_mode): void
    66         $this->mode = $a_mode;
    79         $this->
xmlSetDtdDef(
"<!DOCTYPE Roles PUBLIC \"-//ILIAS//DTD ILIAS Roles//EN\" \"" . ILIAS_HTTP_PATH . 
"/xml/ilias_role_definition_4_2.dtd\">");
    89         if ($this->
getMode() != self::MODE_DTPL) {
    93         foreach ($this->
getRoles() as $role_id => $role_folder_ids) {
    94             foreach ((array) $role_folder_ids as $rolf) {
    99         if ($this->
getMode() != self::MODE_DTPL) {
   107     private function writeRole(
int $a_role_id, 
int $a_rolf): void
   112             'protected' => (
$GLOBALS[
'DIC'][
'rbacreview']->isProtected($a_rolf, $a_role_id) ? 1 : 0)
   121         foreach ($this->rbacreview->getAllOperationsOfRole($a_role_id, $a_rolf) as $obj_group => 
$operations) {
   122             foreach ($operations as $ops_id) {
   123                 if (isset($this->operations[$ops_id])) {
   124                     $this->
xmlElement(
'operation', [
'group' => $obj_group], trim($this->operations[$ops_id]));
   137         foreach ($this->rbacreview->getOperations() as $operation) {
   138             $this->operations[$operation[
'ops_id']] = $operation[
'operation'];
 
write()
Write xml presentation of chosen roles. 
 
writeHeader()
Write xml header. 
 
setRoles(array $a_roles)
Set roles Format is: array(role_id => array(role_folder_id)) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
xmlSetGenCmt(string $genCmt)
Sets generated comment. 
 
xmlEndTag(string $tag)
Writes an endtag. 
 
xmlSetDtdDef(string $dtdDef)
Sets dtd definition. 
 
addRole(int $a_role_id, int $a_rolf_id)
 
static _lookupTitle(int $obj_id)
 
writeRole(int $a_role_id, int $a_rolf)
Write xml presentation of one role. 
 
xmlHeader()
Writes xml header. 
 
static _lookupDescription(int $obj_id)
 
initRbacOperations()
Cache rbac operations. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag. 
 
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content) 
 
static _lookupType(int $id, bool $reference=false)