4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
26 public function __construct($a_parent_obj, $a_parent_cmd =
"", $a_template_context =
"")
30 $this->ctrl = $DIC[
'ilCtrl'];
31 $this->lng = $DIC[
'lng'];
34 $this->
setId(
'mmsearch_' . $obj_id);
35 parent::__construct($a_parent_obj, $a_parent_cmd);
36 $this->lng->loadLanguageModule(
'crs');
37 $this->lng->loadLanguageModule(
'grp');
38 $this->
setTitle($this->lng->txt(
'members'));
40 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
41 $this->ctrl->clearParameters($a_parent_obj);
43 $this->
setRowTemplate(
'tpl.mail_member_search_row.html',
'Services/Contact');
46 $this->
addColumn($this->lng->txt(
'login'),
'login',
'22%');
47 $this->
addColumn($this->lng->txt(
'name'),
'name',
'22%');
48 $this->
addColumn($this->lng->txt(
'role'),
'role',
'22%');
53 $this->
addMultiCommand(
'sendMailToSelectedUsers', $this->lng->txt(
'mail_members'));
62 foreach ($a_set as
$key => $value) {
63 $this->tpl->setVariable(strtoupper(
$key), $value);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
static _lookupObjectId($a_ref_id)
lookup object id
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.