31 foreach ($this->parent_obj->getFormats() as
$f) {
33 $this->formats[
$f[
'key']] = $f[
'txt'];
37 foreach ($types as
$type) {
41 if (!is_dir($dir) || !is_writeable($dir)) {
49 while ($entry = $h_dir->read()) {
50 if ($entry !=
"." && $entry !=
"..") {
51 $ts = substr($entry, 0, strpos($entry,
"__"));
55 $file[$entry .
$type] = [
74 protected function fillRow(array $a_set): void
77 $this->tpl->setCurrentBlock(
'custom');
78 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->{$c[
'func']}($a_set[
'type'], $a_set[
'file']) .
' ');
79 $this->tpl->parseCurrentBlock();
83 $this->tpl->setVariable(
'VAL_ID', $file_id);
85 $type = ($this->formats[$a_set[
'type']] !=
"")
86 ? $this->formats[$a_set[
'type']]
88 $this->tpl->setVariable(
'VAL_TYPE',
$type);
94 ) .
".xlsx" : $a_set[
'file'];
95 $this->tpl->setVariable(
'VAL_FILE',
$filename);
98 $this->tpl->setVariable(
104 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->
lng->txt(
'download'));
109 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
115 if ($type ==
'xlsx') {
117 return $this->
lng->txt(
'dcl_export_started');
119 return $this->
lng->txt(
'dcl_export_finished');
122 return $this->
lng->txt(
'dcl_export_finished');
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
static _getExportDirectory(int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="")
Get export directory for an repository object.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilDclExportGUI $a_parent_obj, string $a_parent_cmd, ilObject $a_exp_obj)
static formatSize(int $size, string $a_mode='short', ?ilLanguage $a_lng=null)
Returns the specified file size value in a human friendly form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addCustomColumn(string $a_txt, object $a_obj, string $a_func)
__construct(Container $dic, ilPlugin $plugin)
parseExportStatus(string $type, string $file)
const IN_PROGRESS_POSTFIX
isExportInProgress(string $file)