ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
 executeCommand ()
 
 listExportFiles ()
 
 simpleExport ()
 
 simpleExportExcel ()
 
- Public Member Functions inherited from ilExportGUI
 __construct (object $a_parent_gui, ?ilObject $a_main_obj=null)
 
 executeCommand ()
 
 addFormat ()
 
 listExportFiles ()
 
 getFormats ()
 

Protected Attributes

ilToolbarGUI $toolbar
 
ilLanguage $lng
 
ilCtrlInterface $ctrl
 
ilObject $ilObjOrgUnit
 
ILIAS UI Factory $ui_factory
 
- Protected Attributes inherited from ilExportGUI
const CMD_SAVE_ITEM_SELECTION = "saveItemSelection"
 
const CMD_EXPORT_OPTION_PREFIX = "exportOption"
 
ilExportHandlerConsumerExportOptionCollectionInterface $export_options
 
ilUIServices $ui_services
 
ilHTTPServices $http
 
ilRefineryFactory $refinery
 
ilObjUser $il_user
 
ilLanguage $lng
 
ilObject $obj
 
ilGlobalTemplateInterface $tpl
 
ilCtrlInterface $ctrl
 
ilAccessHandler $access
 
ilErrorHandling $error
 
ilToolbarGUI $toolbar
 
ilObjectDefinition $obj_definition
 
ilTree $tree
 
ilExportHandler $export_handler
 
ilExportHandlerConsumerContextInterface $context
 
ilDataFactory $data_factory
 
object $parent_gui
 

Additional Inherited Members

- Data Fields inherited from ilExportGUI
const CMD_LIST_EXPORT_FILES = "listExportFiles"
 
const CMD_EXPORT_XML = "createXmlExportFile"
 
- Protected Member Functions inherited from ilExportGUI
 initExportOptionsFromPost ()
 
 builtExportOptionCommand (ilExportHandlerConsumerExportOptionInterface $export_option)
 
 enableStandardXMLExport ()
 
 initExportOptions ()
 
 displayExportFiles ()
 
 createXMLExportFile ()
 
 showItemSelection ()
 Show container item selection table. More...
 
 saveItemSelection ()
 
 createXMLExport ()
 
 createXMLContainerExport ()
 

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\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), 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  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilOrgUnitExportGUI::executeCommand ( )

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

References ILIAS\Repository\ctrl().

51  : void
52  {
53  $cmd = $this->ctrl->getCmd();
54  if (
55  $cmd === "simpleExport" ||
56  $cmd === "simpleExportExcel"
57  ) {
58  $this->$cmd();
59  return;
60  }
61  parent::executeCommand();
62  }
+ Here is the call graph for this function:

◆ listExportFiles()

ilOrgUnitExportGUI::listExportFiles ( )

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

References ilObjOrgUnit\getRootOrgRefId().

64  : void
65  {
66  if ($this->ilObjOrgUnit->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
67  parent::listExportFiles();
68  }
69  }
static getRootOrgRefId()
+ Here is the call graph for this function:

◆ simpleExport()

ilOrgUnitExportGUI::simpleExport ( )

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

71  : void
72  {
73  $ilOrgUnitExporter = new ilOrgUnitExporter();
74  $ilOrgUnitExporter->sendAndCreateSimpleExportFile();
75  }

◆ simpleExportExcel()

ilOrgUnitExportGUI::simpleExportExcel ( )

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

References ilObjOrgUnit\getRootOrgRefId().

77  : void
78  {
79  $ilOrgUnitExporter = new ilOrgUnitExporter();
80  $ilOrgUnitExporter->simpleExportExcel(ilObjOrgUnit::getRootOrgRefId());
81  }
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: