ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilDclExportGUI Class Reference
+ Inheritance diagram for ilDclExportGUI:
+ Collaboration diagram for ilDclExportGUI:

Public Member Functions

 createExportFile ()
 overwrite to check if exportable fields are available (for async xls export) More...
 
- Public Member Functions inherited from ilExportGUI
 __construct (object $a_parent_gui, ?ilObject $a_main_obj=null)
 
 addFormat (string $a_key, string $a_txt="", object $a_call_obj=null, string $a_call_func="")
 
 getFormats ()
 
 addCustomColumn (string $a_txt, object $a_obj, string $a_func)
 
 addCustomMultiCommand (string $a_txt, object $a_obj, string $a_func)
 
 getCustomMultiCommands ()
 
 getCustomColumns ()
 
 executeCommand ()
 
 listExportFiles ()
 
 createExportFile ()
 
 confirmDeletion ()
 Confirm file deletion. More...
 
 delete ()
 
 download ()
 Download file. More...
 
 handleCustomMultiCommand ()
 

Protected Member Functions

 buildExportTableGUI ()
 
 checkForAsyncEnabled ()
 
- Protected Member Functions inherited from ilExportGUI
 initFileIdentifierFromQuery ()
 
 initFileIdentifiersFromPost ()
 
 initFormatFromPost ()
 
 initExportOptionsFromPost ()
 
 buildExportTableGUI ()
 
 getParentGUI ()
 
 showItemSelection ()
 Show container item selection table. More...
 
 saveItemSelection ()
 

Additional Inherited Members

- Protected Attributes inherited from ilExportGUI
ILIAS Export InternalGUIService $gui
 
Factory $refinery
 
Services $http
 
array $formats = array()
 
array $custom_columns = array()
 
array $custom_multi_commands = array()
 
ilObject $obj
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilCtrlInterface $ctrl
 
ilAccessHandler $access
 
ilErrorHandling $error
 
ilToolbarGUI $toolbar
 
ilObjectDefinition $objDefinition
 
ilTree $tree
 

Detailed Description

Definition at line 22 of file class.ilDclExportGUI.php.

Member Function Documentation

◆ buildExportTableGUI()

ilDclExportGUI::buildExportTableGUI ( )
protected

Definition at line 24 of file class.ilDclExportGUI.php.

25  {
26  return new ilDclExportTableGUI($this, 'listExportFiles', $this->obj);
27  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ checkForAsyncEnabled()

ilDclExportGUI::checkForAsyncEnabled ( )
protected

Definition at line 66 of file class.ilDclExportGUI.php.

References $DIC, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by createExportFile().

66  : bool
67  {
68  global $DIC;
69  if ($DIC->settings()->get('soap_user_administration', '0') === '1') {
70  return true;
71  }
72 
73  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('dcl_no_export_async_config'), true);
74  $this->ctrl->redirect($this, "listExportFiles");
75 
76  return false;
77  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createExportFile()

ilDclExportGUI::createExportFile ( )

overwrite to check if exportable fields are available (for async xls export)

Definition at line 32 of file class.ilDclExportGUI.php.

References checkForAsyncEnabled(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

32  : void
33  {
34  $format = "";
35  if ($this->http->wrapper()->post()->has('format')) {
36  $format = $this->http->wrapper()->post()->retrieve('format', $this->refinery->kindlyTo()->string());
37  }
38  if ($format === 'xlsx') {
39  $this->checkForExportableFields();
40  $this->checkForAsyncEnabled();
41  }
42 
43  parent::createExportFile();
44  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: