3require_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   13        public function __construct($parent_obj, $parent_cmd, $role_id, $template_context = 
""){
 
   14                parent::__construct($parent_obj, $parent_cmd, $template_context);
 
   19                $ilTabs = 
$DIC[
'ilTabs'];
 
   25                $this->tabs = $ilTabs;
 
   28        $this->
setPrefix(
"sr_other_role_".$role_id);
 
   30                $this->
setId(
"sr_other_role_".$role_id);
 
   52                $this->
addColumn($this->lng->txt(
"firstname"), 
"first_name");
 
   53                $this->
addColumn($this->lng->txt(
"lastname"), 
"last_name");
 
   54                $this->
addColumn($this->lng->txt(
"action"));
 
   63        $rbacreview = 
$DIC[
'rbacreview'];
 
   65        $data = $this->
parseRows($rbacreview->assignedUsers($this->getRoleId()));
 
   72                foreach($user_ids as $user_id){
 
   85                $this->role_id = $role_id;
 
   93        return $this->role_id;
 
   98                $set[
"first_name"] = $user->getFirstname();
 
   99                $set[
"last_name"] = $user->getLastname();
 
  100                $set[
"user_object"] = $user;
 
  101                $set[
"user_id"] = $user_id;
 
  107                $ilAccess = 
$DIC[
'ilAccess'];
 
  109                $ilAccess = 
$DIC[
'ilAccess'];
 
  110                $this->tpl->setVariable(
"FIRST_NAME", $set[
"first_name"]);
 
  111                $this->tpl->setVariable(
"LAST_NAME", $set[
"last_name"]);
 
  114                if($ilAccess->checkAccess(
"write", 
"", 
$_GET[
"ref_id"]) && !$this->recursive){
 
  115            $this->ctrl->setParameterByClass(
"ilobjorgunitgui", 
"obj_id", $set[
"user_id"]);
 
  116            $this->ctrl->setParameterByClass(
"ilObjOrgUnitGUI",
"role_id",$this->role_id);
 
  119            $selection->setListTitle(
$lng->txt(
"Actions"));
 
  120            $selection->setId(
"selection_list_user_other_roles_".$set[
"user_id"]);
 
  121            $selection->addItem($this->lng->txt(
"remove"), 
"delete_from_role", $this->ctrl->getLinkTargetByClass(
"ilOrgUnitStaffGUI", 
"confirmRemoveFromRole"));
 
  123                $this->tpl->setVariable(
"ACTIONS", $selection->getHTML());
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static _lookupTitle($a_id)
lookup object title
Class ilOrgUnitOtherRolesTableGUI.
setRowForUser(&$set, $user_id)
fillRow($set)
Standard Version of Fill Row.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormName($a_formname="")
Set Form name.
setShowTemplates($a_value)
Toggle templates.