4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
14 public function __construct($a_parent_obj, $a_parent_cmd, $a_fss_export)
20 $this->
setId(
'memexp');
22 parent::__construct($a_parent_obj, $a_parent_cmd);
24 $this->
setTitle($this->lng->txt(
'ps_export_files'));
27 $this->
addColumn($this->lng->txt(
'type'),
'type');
28 $this->
addColumn($this->lng->txt(
'ps_size'),
'size');
29 $this->
addColumn($this->lng->txt(
'date'),
'date');
30 $this->
addColumn($this->lng->txt(
'action'),
'');
35 $this->
setRowTemplate(
'tpl.mem_export_file_row.html',
'Services/Membership');
37 $this->
addMultiCommand(
'confirmDeleteExportFile', $this->lng->txt(
'delete'));
46 return in_array($a_field, array(
'size',
'date'));
53 foreach ($a_fss_export->getMemberExportFiles() as $exp_file) {
55 'id' => md5($exp_file[
'name']),
56 'type' => strtoupper($exp_file[
"type"]),
57 'date' => $exp_file[
'timest'],
58 'size' => $exp_file[
'size']
71 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
72 $this->tpl->setVariable(
'VAL_TYPE', $a_set[
'type']);
80 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
81 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getParentCmd()
Get parent command.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
numericOrdering($a_field)
__construct($a_parent_obj, $a_parent_cmd, $a_fss_export)
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.
Table presentation of membership export files.
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.