11 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
13 parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
15 $this->
addCustomColumn($this->lng->txt(
'status'), $this,
'parseExportStatus');
22 foreach ($this->parent_obj->getFormats() as
$f) {
24 $this->formats[
$f[
'key']] = $f[
'txt'];
28 foreach ($types as
$type) {
32 if (!is_dir($dir) || !is_writeable($dir)) {
40 while ($entry = $h_dir->read()) {
41 if ($entry !=
"." && $entry !=
"..") {
42 $ts = substr($entry, 0, strpos($entry,
"__"));
46 $file[$entry .
$type] = array(
"type" => $type,
"file" =>
$filename,
72 $this->tpl->setCurrentBlock(
'custom');
73 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->{$c[
'func']}($a_set[
'type'], $a_set[
'file']) .
' ');
74 $this->tpl->parseCurrentBlock();
78 $this->tpl->setVariable(
'VAL_ID', $file_id);
80 $type = ($this->formats[$a_set[
'type']] !=
"")
81 ? $this->formats[$a_set[
'type']]
83 $this->tpl->setVariable(
'VAL_TYPE',
$type);
86 $this->tpl->setVariable(
'VAL_FILE',
$filename);
92 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
97 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
104 if (
$type ==
'xlsx') {
106 return $this->lng->txt(
'dcl_export_started');
108 return $this->lng->txt(
'dcl_export_finished');
113 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)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
getParentObject()
Get parent object.
getCustomColumns()
Get custom columns.
Export User Interface Class.
static _getExportDirectory($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="")
Get export directory for an repository object.
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)