20 declare(strict_types=1);
35 if ($this->
http->wrapper()->post()->has(
'format')) {
36 $format = $this->
http->wrapper()->post()->retrieve(
'format', $this->
refinery->kindlyTo()->string());
38 if ($format ===
'xlsx') {
39 $this->checkForExportableFields();
43 parent::createExportFile();
49 protected function checkForExportableFields():
bool 51 foreach ($this->obj->getTables() as $tbl) {
53 foreach ($tbl->getFields() as $field) {
54 if ($field->getExportable()) {
60 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'dcl_no_export_data_available'),
true);
61 $this->
ctrl->redirect($this,
"listExportFiles");
69 if ($DIC->settings()->get(
'soap_user_administration',
'0') ===
'1') {
73 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'dcl_no_export_async_config'),
true);
74 $this->
ctrl->redirect($this,
"listExportFiles");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Export User Interface Class.
static http()
Fetches the global http state from ILIAS.
createExportFile()
overwrite to check if exportable fields are available (for async xls export)