4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
27 $this->local_roles = $a_roles;
29 parent::__construct($a_parent_obj, $a_parent_cmd);
32 $this->
addColumn($this->lng->txt(
"name"),
"name");
33 $this->
addColumn($this->lng->txt(
"obj_role"),
"role");
38 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
42 if($this->contributor_ids)
44 $this->
setTitle($this->lng->txt(
"blog_contributor_container_add"));
45 $this->
addMultiCommand(
"addContributorContainerAction", $this->lng->txt(
"add"));
49 $this->
setTitle($this->lng->txt(
"blog_contributors"));
50 $this->
addMultiCommand(
"confirmRemoveContributor", $this->lng->txt(
"remove"));
60 $user_map = $assigned =
array();
61 foreach($this->local_roles as $id =>
$title)
63 $local = $rbacreview->assignedUsers($id);
64 $assigned = array_merge($assigned, $local);
65 foreach($local as $user_id)
67 $user_map[$user_id][] =
$title;
71 include_once
"Services/User/classes/class.ilUserUtil.php";
74 foreach(array_unique($assigned) as $id)
78 "role" => $user_map[$id]);
91 $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
92 $this->tpl->setVariable(
"TXT_NAME", $a_set[
"name"]);
93 $this->tpl->setVariable(
"TXT_ROLES", implode(
", " , $a_set[
"role"]));
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
fillRow($a_set)
Fill template row.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
addMultiCommand($a_cmd, $a_text)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, array $a_roles)
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
List all contributors members of a blog.
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.