ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilDclExportGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once('./Services/Export/classes/class.ilExportGUI.php');
5require_once('./Modules/DataCollection/classes/class.ilDclExportTableGUI.php');
6
13{
17 protected function buildExportTableGUI()
18 {
19
20 $table = new ilDclExportTableGUI($this, 'listExportFiles', $this->obj);
21 return $table;
22 }
23
24
28 function createExportFile() {
29 if ($_POST['format'] == 'xlsx') {
30 $this->checkForExportableFields();
31 }
32
33 return parent::createExportFile();
34 }
35
36
42 protected function checkForExportableFields() {
43 global $ilCtrl, $lng;
44 foreach ($this->obj->getTables() as $tbl) {
46 foreach ($tbl->getFields() as $field) {
47 if ($field->getExportable()) {
48 return true;
49 }
50 }
51 }
52
53 ilUtil::sendFailure($lng->txt('dcl_no_export_data_available'),true);
54 $ilCtrl->redirect($this, "listExportFiles");
55 }
56
57}
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
Export User Interface Class.
createExportFile()
overwrite to check if exportable fields are available (for async xls export)
Export User Interface Class.
Export User Interface Class.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$tbl
Definition: example_048.php:81
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:17