4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
22 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)
117 $types[] = $f[
'key'];
118 $this->
formats[$f[
'key']] = $f[
'txt'];
120 include_once(
'./Services/Export/classes/class.ilExport.php');
122 $types, $this->obj->getType());
135 $this->tpl->setCurrentBlock(
'custom');
137 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->$f($a_set[
'type'], $a_set[
'file']).
' ');
138 $this->tpl->parseCurrentBlock();
142 $this->tpl->setVariable(
'VAL_ID', $file_id);
144 $type = ($this->
formats[$a_set[
'type']] !=
"")
145 ? $this->
formats[$a_set[
'type']]
147 $this->tpl->setVariable(
'VAL_TYPE', $type);
148 $this->tpl->setVariable(
'VAL_FILE', $a_set[
'file']);
152 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
157 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
166 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.
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.
static formatDate(ilDateTime $date)
Format a date public.
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.
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.
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.
getExportFiles()
Get export files.