36 $this->
ctrl = $DIC->ctrl();
37 $this->rbacreview = $DIC->rbac()->review();
38 $ilCtrl = $DIC->ctrl();
40 $this->local_roles = $a_roles;
51 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
55 if ($this->contributor_ids) {
56 $this->
setTitle($this->
lng->txt(
"blog_contributor_container_add"));
59 $this->
setTitle($this->
lng->txt(
"blog_contributors"));
70 $user_map = $assigned = array();
71 foreach ($this->local_roles as
$id =>
$title) {
73 $assigned = array_merge($assigned, $local);
74 foreach ($local as $user_id) {
75 $user_map[$user_id][] =
$title;
80 foreach (array_unique($assigned) as
$id) {
81 $data[] = array(
"id" => $id,
83 "role" => $user_map[$id]);
89 protected function fillRow(array $a_set): void
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"]));
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
assignedUsers(int $a_rol_id)
get all assigned users to a given role public
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
__construct(object $a_parent_obj, string $a_parent_cmd, array $a_roles)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addMultiCommand(string $a_cmd, string $a_text)