4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
25 $this->ctrl = $DIC->ctrl();
28 $this->
setId(
'mail_attachments');
33 parent::__construct($a_parent_obj, $a_parent_cmd);
35 $this->
setTitle($this->lng->txt(
'attachment'));
38 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyFilter'));
42 $this->
setRowTemplate(
'tpl.mail_attachment_row.html',
'Services/Mail');
49 $this->
addColumn($this->lng->txt(
''),
'',
'1px',
true);
50 $this->
addColumn($this->lng->txt(
'mail_file_name'),
'filename');
51 $this->
addColumn($this->lng->txt(
'mail_file_size'),
'filesize');
52 $this->
addColumn($this->lng->txt(
'create_date'),
'filecreatedate');
65 $this->tpl->setVariable(
'VAL_CHECKBOX',
ilUtil::formCheckbox($a_set[
'checked'],
'filename[]', urlencode($a_set[
'filename'])));
66 $this->tpl->setVariable(
'VAL_FILENAME', $this->
formatValue(
'filename', $a_set[
'filename']));
67 $this->tpl->setVariable(
'VAL_FILESIZE', $this->
formatValue(
'filesize', $a_set[
'filesize']));
68 $this->tpl->setVariable(
'VAL_FILECREATEDATE', $this->
formatValue(
'filecreatedate', $a_set[
'filecreatedate']));
77 if ($column ==
'filesize' || $column ==
'filecreatedate') {
92 case 'filecreatedate':
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct($a_parent_obj, $a_parent_cmd)
setNoEntriesText($a_text)
Set text for an empty table.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
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.
formatValue($column, $value)
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.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
static formCheckbox($checked, $varname, $value, $disabled=false)
??? public
setLimit($a_limit=0, $a_default_limit=0)