19declare(strict_types=1);
35 public function __construct($a_parent_obj, $a_parent_cmd, $a_allow_object_selection =
false)
39 $this->
setId(
"group_table");
43 $this->admin =
$DIC->rbac()->admin();
44 $this->review =
$DIC->rbac()->review();
47 $this->
addColumn($this->
lng->txt(
"title"),
"title",
"80%");
48 $this->
addColumn($this->
lng->txt(
"members"),
"member",
"20%");
51 $this->
setRowTemplate(
"tpl.rep_search_obj_result_row.html",
"components/ILIAS/Search");
56 $this->
enable(
'select_all');
59 switch ($this->parent_obj->getSearchType()) {
62 if ($this->parent_obj->getRoleCallback()) {
69 if ($this->parent_obj->getRoleCallback()) {
76 if ($a_allow_object_selection) {
85 protected function fillRow(array $a_set): void
93 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
95 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
96 if (strlen($a_set[
'desc'])) {
97 $this->tpl->setVariable(
'VAL_DESC', $a_set[
'desc']);
99 $this->tpl->setVariable(
'VAL_MEMBER', $a_set[
'member']);
106 foreach ($a_ids as $object_id) {
110 if ($type ==
'role') {
111 if ($this->review->isRoleDeleted($object_id)) {
119 $row[
'id'] = $object_id;
146 if ($a_field ==
"member") {
static _lookupType(int $id, bool $reference=false)
static _lookupTitle(int $obj_id)
static _lookupDescription(int $obj_id)
static getInstanceByObjId(int $a_obj_id)
Get instance by obj type.
static hasParticipantListAccess(int $a_obj_id, ?int $a_usr_id=null)
Check if (current) user has access to the participant list.
Class ilRbacAdmin Core functions for role based access control.
class ilRbacReview Contains Review functions of core Rbac.
TableGUI class object (course,group and role) search results Used in member search.
numericOrdering(string $a_field)
@inheritDoc
__construct($a_parent_obj, $a_parent_cmd, $a_allow_object_selection=false)
parseObjectIds(array $a_ids)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setEnableTitle(bool $a_enabletitle)
addMultiCommand(string $a_cmd, string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setDefaultOrderField(string $a_defaultorderfield)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setData(array $a_data)
Set table data.
enable(string $a_module_name)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)