12 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
14 parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
16 $this->
addCustomColumn($this->lng->txt(
'status'), $this,
'parseExportStatus');
23 foreach ($this->parent_obj->getFormats() as $f) {
25 $this->
formats[$f[
'key']] = $f[
'txt'];
29 foreach ($types as
$type) {
33 if (!is_dir($dir) || !is_writeable($dir)) {
41 while ($entry = $h_dir->read()) {
42 if ($entry !=
"." && $entry !=
"..") {
43 $ts = substr($entry, 0, strpos($entry,
"__"));
71 $this->tpl->setCurrentBlock(
'custom');
72 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->{$c[
'func']}($a_set[
'type'], $a_set[
'file']) .
' ');
73 $this->tpl->parseCurrentBlock();
77 $this->tpl->setVariable(
'VAL_ID', $file_id);
80 ? $this->
formats[$a_set[
'type']]
82 $this->tpl->setVariable(
'VAL_TYPE',
$type);
85 $this->tpl->setVariable(
'VAL_FILE',
$filename);
91 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
96 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
102 if (
$type ==
'xlsx') {
104 return $this->lng->txt(
'dcl_export_started');
106 return $this->lng->txt(
'dcl_export_finished');
110 return $this->lng->txt(
'dcl_export_finished');
addCustomColumn($a_txt, $a_obj, $a_func)
Add custom column.
isExportInProgress($file)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
getParentObject()
Get parent object.
getCustomColumns()
Get custom columns.
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)