ILIAS  release_8 Revision v8.24
class.ilDclExportGUI.php
Go to the documentation of this file.
1<?php
2
20{
22 {
23 $table = new ilDclExportTableGUI($this, 'listExportFiles', $this->obj);
24
25 return $table;
26 }
27
31 public function createExportFile(): void
32 {
33 $format = "";
34 if ($this->http->wrapper()->post()->has('format')) {
35 $format = $this->http->wrapper()->post()->retrieve('format', $this->refinery->kindlyTo()->string());
36 }
37 if ($format === 'xlsx') {
38 $this->checkForExportableFields();
39 }
40
41 parent::createExportFile();
42 }
43
47 protected function checkForExportableFields(): bool
48 {
49 foreach ($this->obj->getTables() as $tbl) {
51 foreach ($tbl->getFields() as $field) {
52 if ($field->getExportable()) {
53 return true;
54 }
55 }
56 }
57
58 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('dcl_no_export_data_available'), true);
59 $this->ctrl->redirect($this, "listExportFiles");
60
61 return false;
62 }
63}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
createExportFile()
overwrite to check if exportable fields are available (for async xls export)
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$format
Definition: metadata.php:235
static http()
Fetches the global http state from ILIAS.