19 declare(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",
"Services/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;
147 if ($a_field ==
"member") {
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getInstanceByObjId(int $a_obj_id)
Get instance by obj type.
__construct($a_parent_obj, $a_parent_cmd, $a_allow_object_selection=false)
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
parseObjectIds(array $a_ids)
setDefaultOrderDirection(string $a_defaultorderdirection)
static _lookupDescription(int $obj_id)
static hasParticipantListAccess(int $a_obj_id, int $a_usr_id=null)
Check if (current) user has access to the participant list.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
numericOrdering(string $a_field)
TableGUI class object (course,group and role) search results Used in member search.
__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)
Class ilRbacAdmin Core functions for role based access control.
static _lookupType(int $id, bool $reference=false)
addMultiCommand(string $a_cmd, string $a_text)