4 include_once
'./Services/Xml/classes/class.ilXmlWriter.php';
43 $this->roles = (array) $a_roles;
60 public function addRole($a_role_id, $a_rolf_id)
62 $this->roles[$a_role_id][] = $a_rolf_id;
67 $this->mode = $a_mode;
81 $this->
xmlSetDtdDef(
"<!DOCTYPE Roles PUBLIC \"-//ILIAS//DTD ILIAS Roles//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_role_definition_4_2.dtd\">");
94 if($this->
getMode() != self::MODE_DTPL)
99 foreach($this->
getRoles() as $role_id => $role_folder_ids)
101 foreach((array) $role_folder_ids as $rolf)
107 if($this->
getMode() != self::MODE_DTPL)
125 'protected' => (
$GLOBALS[
'rbacreview']->isProtected($a_rolf,$a_role_id) ? 1 : 0)
134 foreach($rbacreview->getAllOperationsOfRole($a_role_id, $a_rolf) as $obj_group =>
$operations)
138 $this->
xmlElement(
'operation', array(
'group' => $obj_group), trim($this->operations[$ops_id]));
153 foreach($rbacreview->getOperations() as $operation)
155 $this->operations[$operation[
'ops_id']] = $operation[
'operation'];