4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
23 public function __construct($a_parent_obj, $a_parent_cmd, $a_allow_object_selection =
false)
27 parent::__construct($a_parent_obj, $a_parent_cmd);
30 $this->
addColumn($this->lng->txt(
"title"),
"title",
"80%");
31 $this->
addColumn($this->lng->txt(
"members"),
"member",
"20%");
33 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj));
34 $this->
setRowTemplate(
"tpl.rep_search_obj_result_row.html",
"Services/Search");
35 $this->
setTitle($this->lng->txt(
'search_results'));
37 $this->
setId(
"group_table");
40 $this->
enable(
'select_all');
44 if ((
bool) $a_allow_object_selection) {
45 $this->
addMultiCommand(
'selectObject', $this->lng->txt(
'grp_select_object'));
57 $this->tpl->setVariable(
'VAL_ID',
$row[
'id']);
59 $this->tpl->setVariable(
'VAL_TITLE',
$row[
'title']);
60 if (strlen(
$row[
'desc'])) {
61 $this->tpl->setVariable(
'VAL_DESC',
$row[
'desc']);
63 $this->tpl->setVariable(
'VAL_MEMBER',
$row[
'member']);
75 foreach ($a_ids as $object_id) {
79 if (
$type ==
'role') {
80 if (
$GLOBALS[
'rbacreview']->isRoleDeleted($object_id)) {
88 $row[
'id'] = $object_id;
95 include_once
'./Services/Membership/classes/class.ilParticipants.php';
105 include_once
'./Services/User/classes/class.ilUserFilter.php';
121 if ($a_field ==
"member") {
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _lookupTitle($a_id)
lookup object title
static getInstance()
Singelton get instance.
__construct($a_parent_obj, $a_parent_cmd, $a_allow_object_selection=false)
Constructor.
static hasParticipantListAccess($a_obj_id, $a_usr_id=null)
Check if (current) user has access to the participant list.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static _lookupDescription($a_id)
lookup object description
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
parseObjectIds($a_ids)
Parse object data.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
TableGUI class object (course,group and role) search results Used in member search.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
numericOrdering($a_field)
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setEnableTitle($a_enabletitle)
Set Enable Title.
static getInstanceByObjId($a_obj_id)
Get instance by obj type.