35 $this->ui_factory = $DIC->ui()->factory();
36 $this->ui_renderer = $DIC->ui()->renderer();
48 $action = $this->ui_factory->link()->standard(
49 $this->
lng->txt(
'download'),
53 $dropdown = $this->ui_factory->dropdown()->standard($action)->withLabel($this->
lng->txt(
'actions'));
54 return $this->ui_renderer->render($dropdown);
63 if (in_array($a_field, array(
'size',
'date'))) {
77 $obj_type = $this->obj->getType();
79 foreach ($this->parent_obj->getFormats() as
$f) {
81 $this->formats[
$f[
'key']] = $f[
'txt'];
85 foreach ($types as $type) {
93 if (!is_dir($dir) || !is_writable($dir)) {
101 while ($entry = $h_dir->read()) {
104 && (substr($entry, -4) ===
".zip" || substr($entry, -5) ===
".xlsx")
105 && (preg_match(
"/^[0-9]{10}_{2}[0-9]+_{2}(" . $obj_type .
"_)*[0-9]+\.zip\$/", $entry)
106 || preg_match(
"/^[0-9]{10}_{2}[0-9]+_{2}(" . $obj_type .
"_)*[0-9]+\.xlsx\$/", $entry))) {
107 $ts = substr($entry, 0, strpos($entry,
"__"));
108 $file[$entry . $type] = [
109 "type" => (string) $type,
110 "file" => (
string) $entry,
111 "size" => (
int) filesize($dir .
"/" . $entry),
112 "timestamp" => (
int) $ts
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
numericOrdering(string $a_field)
__construct($parent_obj, $parent_cmd, $exp_obj)
formatActionsList($type, $filename)
addMultiCommand(string $a_cmd, string $a_text)