ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilOrgUnitExportGUI Class Reference

Class ilOrgUnitExportGUI. 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
 
ILIAS UI Factory $ui_factory
 
- 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
 

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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

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

Member Function Documentation

◆ extendExportGUI()

ilOrgUnitExportGUI::extendExportGUI ( )
private

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

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

Referenced by __construct().

63  : void
64  {
65  $this->toolbar->addComponent(
66  $this->ui_factory->link()->standard(
67  $this->lng->txt('simple_xml'),
68  $this->ctrl->getLinkTarget($this, "simpleExport")
69  )
70  );
71  $this->toolbar->addComponent(
72  $this->ui_factory->link()->standard(
73  $this->lng->txt('simple_xls'),
74  $this->ctrl->getLinkTarget($this, "simpleExportExcel")
75  )
76  );
77  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listExportFiles()

ilOrgUnitExportGUI::listExportFiles ( )

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

References ilObjOrgUnit\getRootOrgRefId().

56  : void
57  {
58  if ($this->ilObjOrgUnit->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
59  parent::listExportFiles();
60  }
61  }
static getRootOrgRefId()
+ Here is the call graph for this function:

◆ simpleExport()

ilOrgUnitExportGUI::simpleExport ( )

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

79  : void
80  {
81  $ilOrgUnitExporter = new ilOrgUnitExporter();
82  $ilOrgUnitExporter->sendAndCreateSimpleExportFile();
83  }

◆ simpleExportExcel()

ilOrgUnitExportGUI::simpleExportExcel ( )

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

References ilObjOrgUnit\getRootOrgRefId().

85  : void
86  {
87  $ilOrgUnitExporter = new ilOrgUnitExporter();
88  $ilOrgUnitExporter->simpleExportExcel(ilObjOrgUnit::getRootOrgRefId());
89  }
static getRootOrgRefId()
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilOrgUnitExportGUI::$ctrl
protected

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

◆ $ilObjOrgUnit

ilObject ilOrgUnitExportGUI::$ilObjOrgUnit
protected

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

◆ $lng

ilLanguage ilOrgUnitExportGUI::$lng
protected

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

◆ $toolbar

ilToolbarGUI ilOrgUnitExportGUI::$toolbar
protected

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

◆ $ui_factory

ILIAS UI Factory ilOrgUnitExportGUI::$ui_factory
protected

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


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