ILIAS  release_8 Revision v8.23
ilOrgUnitExportGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilOrgUnitExportGUI:
+ Collaboration diagram for ilOrgUnitExportGUI:

Public Member Functions

 __construct (ilObjOrgUnitGUI $a_parent_gui, ?ilObject $a_main_obj=null)
 
 listExportFiles ()
 
 simpleExport ()
 
 simpleExportExcel ()
 
- 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 Attributes

ilToolbarGUI $toolbar
 
ilLanguage $lng
 
ilCtrlInterface $ctrl
 
ilObject $ilObjOrgUnit
 
- Protected Attributes inherited from ilExportGUI
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
 

Private Member Functions

 extendExportGUI ()
 

Additional Inherited Members

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

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitExportGUI

Author
: Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
: Martin Studer ms@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 25 of file class.ilOrgUnitExportGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitExportGUI::__construct ( ilObjOrgUnitGUI  $a_parent_gui,
?ilObject  $a_main_obj = null 
)

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

References $DIC, $lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), extendExportGUI(), ilObjectGUI\getObject(), ilObjOrgUnit\getRootOrgRefId(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

33  {
34  global $DIC;
35  $ilToolbar = $DIC->toolbar();
36  $lng = $DIC->language();
37  $ilCtrl = $DIC->ctrl();
38 
39  parent::__construct($a_parent_gui, $a_main_obj);
40 
41  $this->toolbar = $ilToolbar;
42  $this->lng = $lng;
43  $this->ctrl = $ilCtrl;
44  $this->ilObjOrgUnit = $a_parent_gui->getObject();
45 
46  if ($this->ilObjOrgUnit->getRefId() === ilObjOrgUnit::getRootOrgRefId()) {
47  //Simple XML and Simple XLS Export should only be available in the root orgunit folder as it always exports the whole tree
48  $this->extendExportGUI();
49  }
50  }
global $DIC
Definition: feed.php:28
static getRootOrgRefId()
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ extendExportGUI()

ilOrgUnitExportGUI::extendExportGUI ( )
private

Definition at line 59 of file class.ilOrgUnitExportGUI.php.

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

Referenced by __construct().

59  : void
60  {
61  $this->toolbar->addButton($this->lng->txt("simple_xml"), $this->ctrl->getLinkTarget($this, "simpleExport"));
62  $this->toolbar->addButton(
63  $this->lng->txt("simple_xls"),
64  $this->ctrl->getLinkTarget($this, "simpleExportExcel")
65  );
66  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listExportFiles()

ilOrgUnitExportGUI::listExportFiles ( )

Definition at line 52 of file class.ilOrgUnitExportGUI.php.

References ilObjOrgUnit\getRootOrgRefId().

52  : void
53  {
54  if ($this->ilObjOrgUnit->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
55  parent::listExportFiles();
56  }
57  }
static getRootOrgRefId()
+ Here is the call graph for this function:

◆ simpleExport()

ilOrgUnitExportGUI::simpleExport ( )

Definition at line 68 of file class.ilOrgUnitExportGUI.php.

68  : void
69  {
70  $ilOrgUnitExporter = new ilOrgUnitExporter();
71  $ilOrgUnitExporter->sendAndCreateSimpleExportFile();
72  }

◆ simpleExportExcel()

ilOrgUnitExportGUI::simpleExportExcel ( )

Definition at line 74 of file class.ilOrgUnitExportGUI.php.

References ilObjOrgUnit\getRootOrgRefId().

74  : void
75  {
76  $ilOrgUnitExporter = new ilOrgUnitExporter();
77  $ilOrgUnitExporter->simpleExportExcel(ilObjOrgUnit::getRootOrgRefId());
78  }
static getRootOrgRefId()
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilOrgUnitExportGUI::$ctrl
protected

Definition at line 29 of file class.ilOrgUnitExportGUI.php.

◆ $ilObjOrgUnit

ilObject ilOrgUnitExportGUI::$ilObjOrgUnit
protected

Definition at line 30 of file class.ilOrgUnitExportGUI.php.

◆ $lng

ilLanguage ilOrgUnitExportGUI::$lng
protected

Definition at line 28 of file class.ilOrgUnitExportGUI.php.

Referenced by __construct().

◆ $toolbar

ilToolbarGUI ilOrgUnitExportGUI::$toolbar
protected

Definition at line 27 of file class.ilOrgUnitExportGUI.php.


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