4 require_once(
'./Services/Export/classes/class.ilExportGUI.php');
5 require_once(
'./Services/Export/classes/class.ilExport.php');
6 require_once(
'./Services/Export/classes/class.ilExportTableGUI.php');
16 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj) {
17 parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
19 $this->
addCustomColumn($this->lng->txt(
'status'), $this,
'parseExportStatus');
26 foreach ($this->parent_obj->getFormats() as $f)
29 $this->
formats[$f[
'key']] = $f[
'txt'];
33 foreach($types as $type)
38 if (!is_dir($dir) || !is_writeable($dir)) {
46 while ($entry = $h_dir->read())
48 if ($entry !=
"." && $entry !=
"..")
50 $ts = substr($entry, 0, strpos($entry,
"__"));
79 $this->tpl->setCurrentBlock(
'custom');
80 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->{$c[
'func']}($a_set[
'type'], $a_set[
'file']) .
' ');
81 $this->tpl->parseCurrentBlock();
85 $this->tpl->setVariable(
'VAL_ID', $file_id);
87 $type = ($this->
formats[$a_set[
'type']] !=
"")
88 ? $this->
formats[$a_set[
'type']]
90 $this->tpl->setVariable(
'VAL_TYPE', $type);
93 $this->tpl->setVariable(
'VAL_FILE',
$filename);
99 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
104 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
109 if($type ==
'xlsx') {
111 return $this->lng->txt(
'dcl_export_started');
113 return $this->lng->txt(
'dcl_export_finished');
117 return $this->lng->txt(
'dcl_export_finished');
addCustomColumn($a_txt, $a_obj, $a_func)
Add custom column.
isExportInProgress($file)
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
getParentObject()
Get parent object.
getCustomColumns()
Get custom columns.
static formatDate(ilDateTime $date)
Format a date public.
Export User Interface Class.
Create styles array
The data for the language used.
static _getExportDirectory($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="")
Get export directory for an repository object.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
const IN_PROGRESS_POSTFIX
parseExportStatus($type, $file)