12include_once(
'Services/Table/classes/class.ilTable2GUI.php');
 
   54        $this->lng        = 
$DIC[
'lng'];
 
   55        $this->ctrl       = 
$DIC[
'ilCtrl'];
 
   56        $this->
user       = $DIC[
'ilUser'];
 
   57        $this->rbacsystem = 
$DIC[
'rbacsystem'];
 
   59        $this->lng->loadLanguageModule(
'crs');
 
   60        $this->lng->loadLanguageModule(
'buddysystem');
 
   64            include_once 
"Services/Mail/classes/class.ilMail.php";
 
   66            $this->mailing_allowed = $this->rbacsystem->checkAccess(
'internal_mail', $mail->getMailObjectReferenceId());
 
   72            $mode[
"short"] = 
"crs";
 
   73            $mode[
"long"] = 
"course";
 
   74            $mode[
"checkbox"] = 
"search_crs";
 
   75            $mode[
"tableprefix"] = 
"crstable";
 
   76            $mode[
"lng_mail"] = $this->lng->txt(
"mail_my_courses");
 
   77            $mode[
"view"] = 
"mycourses";
 
   79        } elseif (
$type == 
"grp") {
 
   80            $mode[
"short"] = 
"grp";
 
   81            $mode[
"long"] = 
"group";
 
   82            $mode[
"checkbox"] = 
"search_grp";
 
   83            $mode[
"tableprefix"] = 
"grptable";
 
   84            $mode[
"lng_mail"] = $this->lng->txt(
"mail_my_groups");
 
   85            $mode[
"view"] = 
"mygroups";
 
   90        parent::__construct($a_parent_obj);
 
   93        $this->parentObject = $a_parent_obj;
 
   97        $this->ctrl->setParameter($a_parent_obj, 
'view', 
$mode[
'view']);
 
   98        if (
$_GET[
'ref'] != 
'') {
 
   99            $this->ctrl->setParameter($a_parent_obj, 
'ref', 
$_GET[
'ref']);
 
  102            $this->ctrl->setParameter($a_parent_obj, 
$mode[
"checkbox"], implode(
',', 
$_POST[
$mode[
"checkbox"]]));
 
  105        $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
 
  106        $this->ctrl->clearParameters($a_parent_obj);
 
  109        $this->
setRowTemplate(
'tpl.mail_search_courses_row.html', 
'Services/Contact');
 
  115        $this->
addColumn($mode[
"lng_mail"], 
'CRS_NAME', 
'30%');
 
  116        $this->
addColumn($this->lng->txt(
'path'), 
'CRS_PATH', 
'30%');
 
  117        $this->
addColumn($this->lng->txt(
'crs_count_members'), 
'CRS_NO_MEMBERS', 
'20%');
 
  118        $this->
addColumn($this->lng->txt(
'actions'), 
'', 
'19%');
 
  121            if ($this->mailing_allowed) {
 
  125            $this->lng->loadLanguageModule(
"wsp");
 
  126            $this->
addMultiCommand(
'share', $this->lng->txt(
'wsp_share_with_members'));
 
  128        $this->
addMultiCommand(
'showMembers', $this->lng->txt(
'mail_list_members'));
 
  130        if (
$_GET[
'ref'] == 
'mail') {
 
  144        if ($a_set[
'hidden_members']) {
 
  145            $this->tpl->setCurrentBlock(
'caption_asterisk');
 
  146            $this->tpl->touchBlock(
'caption_asterisk');
 
  147            $this->tpl->parseCurrentBlock();
 
  149        foreach ($a_set as 
$key => $value) {
 
  150            $this->tpl->setVariable(strtoupper(
$key), $value);
 
  152        $this->tpl->setVariable(
'SHORT', $this->mode[
"short"]);
 
  157        if (
$column == 
'CRS_NO_MEMBERS') {
 
An exception for terminatinating execution or to throw for unit testing.
numericOrdering($column)
Should this field be sorted numeric?
__construct($a_parent_obj, $type='crs', $context='mail')
Constructor.
This class handles base functions for mail handling.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.