4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/Calendar/classes/class.ilDatePresentation.php';
22 public function __construct($a_parent_obj, $a_parent_cmd)
32 $this->
setId(
'mail_attachments');
39 $this->
setTitle($this->lng->txt(
'attachment'));
42 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'applyFilter'));
46 $this->
setRowTemplate(
'tpl.mail_attachment_row.html',
'Services/Mail');
53 $this->
addColumn($this->lng->txt(
''),
'',
'1px',
true);
54 $this->
addColumn($this->lng->txt(
'mail_file_name'),
'filename');
55 $this->
addColumn($this->lng->txt(
'mail_file_size'),
'filesize');
56 $this->
addColumn($this->lng->txt(
'create_date'),
'filecreatedate');
62 protected function fillRow(Array $file_data)
67 $this->tpl->setVariable(
'VAL_CHECKBOX',
ilUtil::formCheckbox($file_data[
'checked'],
'filename[]', urlencode($file_data[
'filename'])));
68 $this->tpl->setVariable(
'VAL_FILENAME', $this->
formatValue(
'filename', $file_data[
'filename']));
69 $this->tpl->setVariable(
'VAL_FILESIZE', $this->
formatValue(
'filesize', $file_data[
'filesize']));
70 $this->tpl->setVariable(
'VAL_FILECREATEDATE', $this->
formatValue(
'filecreatedate', $file_data[
'filecreatedate']));
79 if($column ==
'filesize' || $column ==
'filecreatedate')
return true;
93 case 'filecreatedate':