ILIAS  release_4-4 Revision
ilOrgUnitExportGUI Class Reference

Class ilOrgUnitExportGUI. More...

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

Public Member Functions

 __construct (ilObjOrgUnitGUI $a_parent_gui, $a_main_obj=null)
 
 simpleExport ()
 
 simpleExportExcel ()
 
- Public Member Functions inherited from ilExportGUI
 __construct ($a_parent_gui, $a_main_obj=null)
 Constuctor. More...
 
 addFormat ($a_key, $a_txt="", $a_call_obj=null, $a_call_func="")
 Add formats. More...
 
 getFormats ()
 Get formats. More...
 
 addCustomColumn ($a_txt, $a_obj, $a_func)
 Add custom column. More...
 
 addCustomMultiCommand ($a_txt, $a_obj, $a_func)
 Add custom multi command. More...
 
 getCustomMultiCommands ()
 Get custom multi commands. More...
 
 getCustomColumns ()
 Get custom columns. More...
 
 executeCommand ()
 Execute command. More...
 
 listExportFiles ()
 List export files. More...
 
 createExportFile ()
 Create export file. More...
 
 confirmDeletion ()
 Confirm file deletion. More...
 
 delete ()
 Delete files. More...
 
 download ()
 Download file. More...
 
 handleCustomMultiCommand ()
 Handle custom multi command. More...
 

Protected Attributes

 $toolbar
 
 $lng
 
 $ctrl
 
 $ilObjOrgUnit
 
- Protected Attributes inherited from ilExportGUI
 $formats = array()
 
 $custom_columns = array()
 
 $custom_multi_commands = array()
 

Private Member Functions

 extendExportGUI ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilExportGUI
 getParentGUI ()
 get parent gui More...
 
 showItemSelection ()
 Show container item selection table. More...
 
 saveItemSelection ()
 Save selection of subitems. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

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

References $ilCtrl, $lng, extendExportGUI(), ilObject\getRefId(), and ilObjOrgUnit\getRootOrgRefId().

37  {
38  global $ilToolbar, $lng, $ilCtrl;
39 
40  parent::__construct($a_parent_gui, $a_main_obj);
41 
42  $this->toolbar = $ilToolbar;
43  $this->lng = $lng;
44  $this->ctrl = $ilCtrl;
45  $this->ilObjOrgUnit = $a_parent_gui->object;
46 
48  //Simple XML and Simple XLS Export should only be available in the root orgunit folder as it always exports the whole tree
49  $this->extendExportGUI();
50  }
51  }
global $ilCtrl
Definition: ilias.php:18
Class ilObjOrgUnit.
static getRootOrgRefId()
getRefId()
get reference id public
+ Here is the call graph for this function:

Member Function Documentation

◆ extendExportGUI()

ilOrgUnitExportGUI::extendExportGUI ( )
private

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

Referenced by __construct().

53  {
54  $this->toolbar->addButton($this->lng->txt("simple_xml"), $this->ctrl->getLinkTarget($this, "simpleExport"));
55  $this->toolbar->addButton($this->lng->txt("simple_xls"), $this->ctrl->getLinkTarget($this, "simpleExportExcel"));
56  }
+ Here is the caller graph for this function:

◆ simpleExport()

ilOrgUnitExportGUI::simpleExport ( )

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

59  {
60  $ilOrgUnitExporter = new ilOrgUnitExporter();
61  $ilOrgUnitExporter->sendAndCreateSimpleExportFile();
62  }
Class ilOrgUnitExporter.

◆ simpleExportExcel()

ilOrgUnitExportGUI::simpleExportExcel ( )

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

References ilObjOrgUnit\getRootOrgRefId().

65  {
66  $ilOrgUnitExporter = new ilOrgUnitExporter();
67  $ilOrgUnitExporter->simpleExportExcel(ilObjOrgUnit::getRootOrgRefId());
68  }
Class ilOrgUnitExporter.
static getRootOrgRefId()
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilOrgUnitExportGUI::$ctrl
protected

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

◆ $ilObjOrgUnit

ilOrgUnitExportGUI::$ilObjOrgUnit
protected

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

◆ $lng

ilOrgUnitExportGUI::$lng
protected

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

Referenced by __construct().

◆ $toolbar

ilOrgUnitExportGUI::$toolbar
protected

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


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