4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
21 public function __construct($a_parent_obj, $a_parent_cmd)
31 $this->
setId(
'mail_attachments');
36 parent::__construct($a_parent_obj, $a_parent_cmd);
38 $this->
setTitle($this->lng->txt(
'attachment'));
41 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyFilter'));
45 $this->
setRowTemplate(
'tpl.mail_attachment_row.html',
'Services/Mail');
52 $this->
addColumn($this->lng->txt(
''),
'',
'1px',
true);
53 $this->
addColumn($this->lng->txt(
'mail_file_name'),
'filename');
54 $this->
addColumn($this->lng->txt(
'mail_file_size'),
'filesize');
55 $this->
addColumn($this->lng->txt(
'create_date'),
'filecreatedate');
68 $this->tpl->setVariable(
'VAL_CHECKBOX',
ilUtil::formCheckbox($a_set[
'checked'],
'filename[]', urlencode($a_set[
'filename'])));
69 $this->tpl->setVariable(
'VAL_FILENAME', $this->
formatValue(
'filename', $a_set[
'filename']));
70 $this->tpl->setVariable(
'VAL_FILESIZE', $this->
formatValue(
'filesize', $a_set[
'filesize']));
71 $this->tpl->setVariable(
'VAL_FILECREATEDATE', $this->
formatValue(
'filecreatedate', $a_set[
'filecreatedate']));
80 if(
$column ==
'filesize' ||
$column ==
'filecreatedate')
return true;
94 case 'filecreatedate':
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="")
Constructor.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setNoEntriesText($a_text)
Set text for an empty table.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
formatValue($column, $value)
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
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.
static formCheckbox($checked, $varname, $value, $disabled=false)
??? public
setLimit($a_limit=0, $a_default_limit=0)