4 include_once (
'./Services/Table/classes/class.ilTable2GUI.php');
 
    5 include_once 
'./Services/AccessControl/classes/class.ilPermissionGUI.php';
 
   27         public function __construct($a_parent_obj,$a_parent_cmd, $a_rolf_id,$a_role_id,$a_show_admin_permissions = 
false)
 
   31                 $this->tpl_type = $a_type;
 
   32                 $this->show_admin_permissions = $a_show_admin_permissions;
 
   36                 $this->
setId(
'role_options_'.$a_ref_id.
'_'.$a_role_id);
 
   38                 $this->lng->loadLanguageModule(
'rbac');
 
   40                 $this->role_id = $a_role_id;
 
   41                 $this->rolf_id = $a_rolf_id;
 
   44                 $this->
setRowTemplate(
"tpl.obj_role_template_options_row.html", 
"Services/AccessControl");
 
   88                 if(isset(
$row[
'recursive']) and !$this->show_admin_permissions)
 
   90                         $this->tpl->setCurrentBlock(
'recursive');
 
   91                         $this->tpl->setVariable(
'TXT_RECURSIVE',$this->lng->txt(
'change_existing_objects'));
 
   92                         $this->tpl->setVariable(
'DESC_RECURSIVE',$this->lng->txt(
'change_existing_objects_desc'));
 
   95                 elseif(
$row[
'protected'])
 
   97                         $this->tpl->setCurrentBlock(
'protected');
 
   99                         if(!$rbacreview->isAssignable($this->getRoleId(), $this->
getRoleFolderId()))
 
  101                                 $this->tpl->setVariable(
'DISABLED_PROTECTED',
'disabled="disabled"');
 
  104                         if($rbacreview->isProtected($this->getRoleFolderId(), $this->
getRoleId()))
 
  106                                 $this->tpl->setVariable(
'PROTECTED_CHECKED',
'checked="checked"');
 
  109                         $this->tpl->setVariable(
'TXT_PROTECTED',$this->lng->txt(
'role_protect_permissions'));
 
  110                         $this->tpl->setVariable(
'DESC_PROTECTED',$this->lng->txt(
'role_protect_permissions_desc'));
 
  111                         $this->tpl->parseCurrentBlock();
 
  122                 global $rbacreview, $objDefinition;
 
  124                 $row[0][
'recursive'] = 1;
 
  125                 $row[1][
'protected'] = 1;