4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
22 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
26 $this->obj = $a_exp_obj;
28 parent::__construct($a_parent_obj, $a_parent_cmd);
30 $this->
setTitle($lng->txt(
'exp_export_files'));
39 $this->
setRowTemplate(
'tpl.export_table_row.html',
'Services/Export');
51 $this->
addColumn($this->lng->txt(
''),
'',
'1',
true);
52 $this->
addColumn($this->lng->txt(
'type'),
'type');
53 $this->
addColumn($this->lng->txt(
'file'),
'file');
54 $this->
addColumn($this->lng->txt(
'size'),
'size');
55 $this->
addColumn($this->lng->txt(
'date'),
'timestamp');
61 $this->
addColumn($this->lng->txt(
'actions'));
82 $this->custom_columns[] =
array(
'txt' => $a_txt,
115 foreach ($this->parent_obj->getFormats() as $f) {
116 $types[] = $f[
'key'];
117 $this->
formats[$f[
'key']] = $f[
'txt'];
119 include_once(
'./Services/Export/classes/class.ilExport.php');
123 $this->obj->getType()
136 $this->tpl->setCurrentBlock(
'custom');
138 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->$f($a_set[
'type'], $a_set[
'file']) .
' ');
139 $this->tpl->parseCurrentBlock();
143 $this->tpl->setVariable(
'VAL_ID', $file_id);
146 ? $this->
formats[$a_set[
'type']]
148 $this->tpl->setVariable(
'VAL_TYPE',
$type);
149 $this->tpl->setVariable(
'VAL_FILE', $a_set[
'file']);
153 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
158 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
167 return $row[
'type'] .
':' . $row[
'file'];
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
Constructor.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addCustomColumn($a_txt, $a_obj, $a_func)
Add custom column.
static _getExportFiles($a_obj_id, $a_export_types="", $a_obj_type="")
Get Export Files for a repository object.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
getParentObject()
Get parent object.
addCustomMultiCommand($a_txt, $a_cmd)
Add custom multi command.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
getCustomColumns()
Get custom columns.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
getExportFiles()
Get export files.