3 declare(strict_types=1);
38 $this->obj = $a_exp_obj;
42 $this->
setTitle($this->
lng->txt(
'exp_export_files'));
51 $this->
setRowTemplate(
'tpl.export_table_row.html',
'Services/Export');
78 public function addCustomColumn(
string $a_txt,
object $a_obj,
string $a_func): void
81 $this->custom_columns[] = array(
'txt' => $a_txt,
100 foreach ($this->parent_obj->getFormats() as
$f) {
101 $types[] =
$f[
'key'];
102 $this->formats[
$f[
'key']] = $f[
'txt'];
107 $this->obj->getType()
111 protected function fillRow(array $a_set): void
114 $this->tpl->setCurrentBlock(
'custom');
116 $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->
$f($a_set[
'type'], $a_set[
'file']) .
' ');
117 $this->tpl->parseCurrentBlock();
121 $this->tpl->setVariable(
'VAL_ID', $file_id);
123 $type = (isset($this->formats[$a_set[
'type']]) && $this->formats[$a_set[
'type']] !=
"")
124 ? $this->formats[$a_set[
'type']]
126 $this->tpl->setVariable(
'VAL_TYPE',
$type);
127 $this->tpl->setVariable(
'VAL_FILE', $a_set[
'file']);
129 $this->tpl->setVariable(
134 $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->
lng->txt(
'download'));
139 $this->tpl->setVariable(
'URL_DOWNLOAD',
$url);
144 return $row[
'type'] .
':' . $row[
'file'];
setFormAction(string $a_form_action, bool $a_multipart=false)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
addCustomMultiCommand(string $a_txt, string $a_cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDefaultOrderField(string $a_defaultorderfield)
static formatSize(int $size, string $a_mode='short', ?ilLanguage $a_lng=null)
Returns the specified file size value in a human friendly form.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static _getExportFiles(int $a_obj_id, $a_export_types="", string $a_obj_type="")
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCustomColumn(string $a_txt, object $a_obj, string $a_func)
__construct(Container $dic, ilPlugin $plugin)
__construct(object $a_parent_obj, string $a_parent_cmd, ilObject $a_exp_obj)
Constructor.
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)