ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
10{
11
15 protected function buildExportTableGUI()
16 {
17 $table = new ilDclExportTableGUI($this, 'listExportFiles', $this->obj);
18
19 return $table;
20 }
21
22
26 public function createExportFile()
27 {
28 if ($_POST['format'] == 'xlsx') {
29 $this->checkForExportableFields();
30 }
31
32 return parent::createExportFile();
33 }
34
35
41 protected function checkForExportableFields()
42 {
43 global $DIC;
44 $ilCtrl = $DIC['ilCtrl'];
45 $lng = $DIC['lng'];
46 foreach ($this->obj->getTables() as $tbl) {
48 foreach ($tbl->getFields() as $field) {
49 if ($field->getExportable()) {
50 return true;
51 }
52 }
53 }
54
55 ilUtil::sendFailure($lng->txt('dcl_no_export_data_available'), true);
56 $ilCtrl->redirect($this, "listExportFiles");
57 }
58}
$_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
if(empty($password)) $table
Definition: pwgen.php:24
global $DIC
Definition: saml.php:7
$lng