24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
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;
83 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
85 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
86 if (strlen($a_set[
'description'])) {
87 $this->tpl->setVariable(
'DESCRIPTION', $a_set[
'description']);
89 $this->tpl->setVariable(
'NUM_USERS', $a_set[
'num']);
104 foreach ($this->role_ids as
$id) {
107 $tmp_data[
'id'] =
$id;
108 $tmp_data[
'num'] = count($rbacreview->assignedUsers($id));
110 $roles[] = $tmp_data;
if(!array_key_exists('StateId', $_REQUEST)) $id
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.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
__construct($parent_obj, $parent_cmd)
Constructor.