ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilGlobalUnitConfigurationGUI 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 ilGlobalUnitConfigurationGUI:
+ Collaboration diagram for ilGlobalUnitConfigurationGUI:

Public Member Functions

 getUnitCategoryOverviewCommand ()
 
 isCRUDContext ()
 
 getUniqueId ()
 
- Public Member Functions inherited from ilUnitConfigurationGUI
 __construct (ilUnitConfigurationRepository $repository)
 
 getUnitCategoryOverviewCommand ()
 
 isCRUDContext ()
 
 getUniqueId ()
 
 executeCommand ()
 
 deleteUnits ()
 

Data Fields

const REQUEST_PARAM_SUB_CONTEXT = 'context'
 

Protected Member Functions

 getDefaultCommand ()
 
 showGlobalUnitCategories ()
 
 showUnitCategories (array $categories)
 
- Protected Member Functions inherited from ilUnitConfigurationGUI
 getDefaultCommand ()
 
 showUnitCategories (array $categories)
 
 getCategoryById (int $id, bool $for_CRUD=true)
 
 handleSubtabs ()
 
 checkPermissions (string $cmd)
 
 confirmDeleteUnit ()
 
 confirmDeleteUnits (array $unit_ids=null)
 
 saveOrder ()
 
 saveUnit ()
 
 showUnitModificationForm ()
 
 addUnit ()
 
 showUnitCreationForm ()
 
 initUnitForm (assFormulaQuestionUnitCategory $category=null, assFormulaQuestionUnit $unit=null)
 
 confirmDeleteCategory ()
 
 confirmDeleteCategories (array $category_ids=null)
 
 deleteCategories ()
 
 initUnitCategoryForm (assFormulaQuestionUnitCategory $cat=null)
 
 addCategory ()
 
 showUnitCategoryCreationForm ()
 
 saveCategory ()
 
 showUnitCategoryModificationForm ()
 

Additional Inherited Members

- Protected Attributes inherited from ilUnitConfigurationGUI
ilUnitConfigurationRepository $repository
 
ILIAS TestQuestionPool InternalRequestService $request
 
ilPropertyFormGUI $unit_cat_form = null
 
ilPropertyFormGUI $unit_form = null
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilCtrlInterface $ctrl
 

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 ilGlobalUnitConfigurationGUI

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

Member Function Documentation

◆ getDefaultCommand()

ilGlobalUnitConfigurationGUI::getDefaultCommand ( )
protected

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

28  : string
29  {
30  return 'showGlobalUnitCategories';
31  }

◆ getUniqueId()

ilGlobalUnitConfigurationGUI::getUniqueId ( )

Definition at line 43 of file class.ilGlobalUnitConfigurationGUI.php.

References ILIAS\UI\examples\Deck\repository().

43  : string
44  {
45  return $this->repository->getConsumerId() . '_global';
46  }
+ Here is the call graph for this function:

◆ getUnitCategoryOverviewCommand()

ilGlobalUnitConfigurationGUI::getUnitCategoryOverviewCommand ( )

Definition at line 33 of file class.ilGlobalUnitConfigurationGUI.php.

Referenced by showUnitCategories().

33  : string
34  {
35  return 'showGlobalUnitCategories';
36  }
+ Here is the caller graph for this function:

◆ isCRUDContext()

ilGlobalUnitConfigurationGUI::isCRUDContext ( )

Definition at line 38 of file class.ilGlobalUnitConfigurationGUI.php.

38  : bool
39  {
40  return true;
41  }

◆ showGlobalUnitCategories()

ilGlobalUnitConfigurationGUI::showGlobalUnitCategories ( )
protected

Definition at line 48 of file class.ilGlobalUnitConfigurationGUI.php.

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

48  : void
49  {
50  global $DIC;
51 
52  $ilToolbar = $DIC->toolbar();
53  $rbacsystem = $DIC->rbac()->system();
54 
55  if ($rbacsystem->checkAccess('write', $this->request->getRefId())) {
56  $ilToolbar->addButton($this->lng->txt('un_add_category'), $this->ctrl->getLinkTarget($this, 'showUnitCategoryCreationForm'));
57  }
58 
59  parent::showGlobalUnitCategories();
60  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ showUnitCategories()

ilGlobalUnitConfigurationGUI::showUnitCategories ( array  $categories)
protected

Definition at line 62 of file class.ilGlobalUnitConfigurationGUI.php.

References getUnitCategoryOverviewCommand().

62  : void
63  {
65  $table->setData($categories);
66 
67  $this->tpl->setContent($table->getHTML());
68  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

Field Documentation

◆ REQUEST_PARAM_SUB_CONTEXT

const ilGlobalUnitConfigurationGUI::REQUEST_PARAM_SUB_CONTEXT = 'context'

Definition at line 26 of file class.ilGlobalUnitConfigurationGUI.php.


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