24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
49 parent::__construct($parent_obj,$parent_cmd);
51 $this->
setRowTemplate(
'tpl.calendar_shared_role_list_row.html',
'Services/Calendar');
54 $this->
addColumn($this->lng->txt(
'objs_role'),
'title',
'75%');
55 $this->
addColumn($this->lng->txt(
'assigned_members'),
'num',
'25%');
57 $this->
addMultiCommand(
'shareAssignRoles',$this->lng->txt(
'cal_share_cal'));
58 $this->
addMultiCommand(
'shareAssignRolesEditable',$this->lng->txt(
'cal_share_cal_editable'));
72 $this->role_ids = $a_role_ids;
84 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
86 $this->tpl->setVariable(
'TITLE',$a_set[
'title']);
87 if(strlen($a_set[
'description']))
89 $this->tpl->setVariable(
'DESCRIPTION',$a_set[
'description']);
91 $this->tpl->setVariable(
'NUM_USERS',$a_set[
'num']);
106 foreach($this->role_ids as $id)
110 $tmp_data[
'id'] = $id;
111 $tmp_data[
'num'] = count($rbacreview->assignedUsers($id));
113 $roles[] = $tmp_data;
static _lookupTitle($a_id)
lookup object title
setRoles($a_role_ids)
set users
static _lookupDescription($a_id)
lookup object description
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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.
__construct($parent_obj, $parent_cmd)
Constructor.