ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSkillTreeAdminGUI Class Reference

Skill tree administration. More...

+ Collaboration diagram for ilSkillTreeAdminGUI:

Public Member Functions

 __construct (SkillInternalManagerService $skill_manager)
 
 executeCommand ()
 

Protected Member Functions

 listTrees ()
 

Protected Attributes

ilCtrl $ctrl
 
ilGlobalTemplateInterface $main_tpl
 
ilToolbarGUI $toolbar
 
ilLanguage $lng
 
ILIAS UI Factory $ui_fac
 
ILIAS UI Renderer $ui_ren
 
ILIAS Data Factory $df
 
RequestInterface $request
 
int $requested_ref_id = 0
 
ilTabsGUI $tabs
 
SkillAdminGUIRequest $admin_gui_request
 
SkillInternalManagerService $skill_manager
 
Tree SkillTreeManager $skill_tree_manager
 
Tree SkillTreeFactory $skill_tree_factory
 
SkillManagementAccess $skill_management_access_manager
 
Table TableManager $table_manager
 

Detailed Description

Skill tree administration.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilSkillTreeAdminGUI: ilObjSkillTreeGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilSkillTreeAdminGUI::__construct ( SkillInternalManagerService  $skill_manager)

Definition at line 57 of file class.ilSkillTreeAdminGUI.php.

58 {
59 global $DIC;
60
61 $this->toolbar = $DIC->toolbar();
62 $this->ctrl = $DIC->ctrl();
63 $this->main_tpl = $DIC->ui()->mainTemplate();
64 $this->lng = $DIC->language();
65 $this->ui_fac = $DIC->ui()->factory();
66 $this->ui_ren = $DIC->ui()->renderer();
67 $this->df = new \ILIAS\Data\Factory();
68 $this->request = $DIC->http()->request();
69 $this->tabs = $DIC->tabs();
70 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
71
72 $this->requested_ref_id = $this->admin_gui_request->getRefId();
73
74 $this->skill_manager = $skill_manager;
75 $this->skill_tree_manager = $this->skill_manager->getTreeManager();
76 $this->skill_tree_factory = $DIC->skills()->internal()->factory()->tree();
77 $this->skill_management_access_manager = $this->skill_manager->getManagementAccessManager($this->requested_ref_id);
78 $this->table_manager = $DIC->skills()->internal()->manager()->getTableManager();
79 }
SkillInternalManagerService $skill_manager
global $DIC
Definition: shib_login.php:26

References $DIC, $skill_manager, ILIAS\Repository\ctrl(), ILIAS\Skill\Service\SkillInternalManagerService\getTreeManager(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSkillTreeAdminGUI::executeCommand ( )

Definition at line 81 of file class.ilSkillTreeAdminGUI.php.

81 : void
82 {
84
85 $next_class = $ctrl->getNextClass($this);
86 $cmd = $ctrl->getCmd("listTrees");
87
88 switch ($next_class) {
89 case "ilobjskilltreegui":
90 $this->tabs->clearTargets();
91 $gui = new ilObjSkillTreeGUI([], $this->requested_ref_id, true, false);
92 $gui->init($this->skill_manager);
93 $ctrl->forwardCommand($gui);
94 break;
95
96 default:
97 if (in_array($cmd, ["listTrees", "createSkillTree", "updateTree", "createTree"])) {
98 $this->$cmd();
99 }
100 }
101 }
getNextClass($a_gui_class=null)
@inheritDoc
forwardCommand(object $a_gui_object)
@inheritDoc
getCmd(?string $fallback_command=null)
@inheritDoc
Skill tree gui class.

References $ctrl, ilCtrl\forwardCommand(), ilCtrl\getCmd(), ilCtrl\getNextClass(), and ILIAS\Repository\tabs().

+ Here is the call graph for this function:

◆ listTrees()

ilSkillTreeAdminGUI::listTrees ( )
protected

Definition at line 103 of file class.ilSkillTreeAdminGUI.php.

103 : void
104 {
105 $mtpl = $this->main_tpl;
109
110 $add_tree_button = $this->ui_fac->button()->standard(
111 $lng->txt("skmg_add_skill_tree"),
112 $ctrl->getLinkTargetByClass("ilobjskilltreegui", "create")
113 );
114
115 if ($this->skill_management_access_manager->hasCreateTreePermission()) {
116 $toolbar->addComponent($add_tree_button);
117 }
118
119 $table = $this->table_manager->getTreeTable($this->requested_ref_id)->getComponent();
120
121 $mtpl->setContent($this->ui_ren->render($table));
122 }
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilGlobalTemplateInterface $main_tpl
addComponent(\ILIAS\UI\Component\Component $a_comp)

References $ctrl, $lng, $main_tpl, $toolbar, ilToolbarGUI\addComponent(), ilCtrl\getLinkTargetByClass(), and ilLanguage\txt().

+ Here is the call graph for this function:

Field Documentation

◆ $admin_gui_request

SkillAdminGUIRequest ilSkillTreeAdminGUI::$admin_gui_request
protected

Definition at line 50 of file class.ilSkillTreeAdminGUI.php.

◆ $ctrl

ilCtrl ilSkillTreeAdminGUI::$ctrl
protected

Definition at line 40 of file class.ilSkillTreeAdminGUI.php.

Referenced by executeCommand(), and listTrees().

◆ $df

ILIAS Data Factory ilSkillTreeAdminGUI::$df
protected

Definition at line 46 of file class.ilSkillTreeAdminGUI.php.

◆ $lng

ilLanguage ilSkillTreeAdminGUI::$lng
protected

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

Referenced by listTrees().

◆ $main_tpl

ilGlobalTemplateInterface ilSkillTreeAdminGUI::$main_tpl
protected

Definition at line 41 of file class.ilSkillTreeAdminGUI.php.

Referenced by listTrees().

◆ $request

RequestInterface ilSkillTreeAdminGUI::$request
protected

Definition at line 47 of file class.ilSkillTreeAdminGUI.php.

◆ $requested_ref_id

int ilSkillTreeAdminGUI::$requested_ref_id = 0
protected

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

◆ $skill_management_access_manager

SkillManagementAccess ilSkillTreeAdminGUI::$skill_management_access_manager
protected

Definition at line 54 of file class.ilSkillTreeAdminGUI.php.

◆ $skill_manager

SkillInternalManagerService ilSkillTreeAdminGUI::$skill_manager
protected

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

Referenced by __construct().

◆ $skill_tree_factory

Tree SkillTreeFactory ilSkillTreeAdminGUI::$skill_tree_factory
protected

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

◆ $skill_tree_manager

Tree SkillTreeManager ilSkillTreeAdminGUI::$skill_tree_manager
protected

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

◆ $table_manager

Table TableManager ilSkillTreeAdminGUI::$table_manager
protected

Definition at line 55 of file class.ilSkillTreeAdminGUI.php.

◆ $tabs

ilTabsGUI ilSkillTreeAdminGUI::$tabs
protected

Definition at line 49 of file class.ilSkillTreeAdminGUI.php.

◆ $toolbar

ilToolbarGUI ilSkillTreeAdminGUI::$toolbar
protected

Definition at line 42 of file class.ilSkillTreeAdminGUI.php.

Referenced by listTrees().

◆ $ui_fac

ILIAS UI Factory ilSkillTreeAdminGUI::$ui_fac
protected

Definition at line 44 of file class.ilSkillTreeAdminGUI.php.

◆ $ui_ren

ILIAS UI Renderer ilSkillTreeAdminGUI::$ui_ren
protected

Definition at line 45 of file class.ilSkillTreeAdminGUI.php.


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