ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 {
14  protected function buildExportTableGUI()
15  {
16  $table = new ilDclExportTableGUI($this, 'listExportFiles', $this->obj);
17  return $table;
18  }
19 
20 
24  public function createExportFile()
25  {
26  if ($_POST['format'] == 'xlsx') {
27  $this->checkForExportableFields();
28  }
29 
30  return parent::createExportFile();
31  }
32 
33 
39  protected function checkForExportableFields()
40  {
41  global $DIC;
42  $ilCtrl = $DIC['ilCtrl'];
43  $lng = $DIC['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 }
global $DIC
Definition: saml.php:7
$tbl
Definition: example_048.php:81
global $ilCtrl
Definition: ilias.php:18
Export User Interface Class.
Export User Interface Class.
Export User Interface Class.
createExportFile()
overwrite to check if exportable fields are available (for async xls export)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $lng
Definition: privfeed.php:17
if(empty($password)) $table
Definition: pwgen.php:24
$_POST["username"]