ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Skill\Table\TreeTable Class Reference
+ Collaboration diagram for ILIAS\Skill\Table\TreeTable:

Public Member Functions

 __construct (int $ref_id)
 
 getComponent ()
 

Protected Member Functions

 getColumns ()
 
 getActions ()
 

Protected Attributes

ilCtrl $ctrl
 
ilLanguage $lng
 
UI Factory $ui_fac
 
ServerRequestInterface $request
 
Data Factory $df
 
Service SkillInternalManagerService $skill_manager
 
Access SkillManagementAccess $skill_management_access_manager
 
Tree SkillTreeManager $skill_tree_manager
 
Tree SkillTreeFactory $skill_tree_factory
 

Detailed Description

Author
Thomas Famula famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Skill\Table\TreeTable::__construct ( int  $ref_id)

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

46 {
47 global $DIC;
48
49 $this->ctrl = $DIC->ctrl();
50 $this->lng = $DIC->language();
51 $this->ui_fac = $DIC->ui()->factory();
52 $this->request = $DIC->http()->request();
53 $this->df = new Data\Factory();
54 $this->skill_manager = $DIC->skills()->internal()->manager();
55 $this->skill_management_access_manager = $this->skill_manager->getManagementAccessManager($ref_id);
56 $this->skill_tree_manager = $this->skill_manager->getTreeManager();
57 $this->skill_tree_factory = $DIC->skills()->internal()->factory()->tree();
58 }
$ref_id
Definition: ltiauth.php:66
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getActions()

ILIAS\Skill\Table\TreeTable::getActions ( )
protected

Definition at line 84 of file class.TreeTable.php.

84 : array
85 {
86 $query_params_namespace = ["skl_tree_table"];
87
88 $uri_delete = $this->df->uri(
89 ILIAS_HTTP_PATH . "/" . $this->ctrl->getLinkTargetByClass("ilobjskilltreegui", "delete")
90 );
91 $url_builder_delete = new UI\URLBuilder($uri_delete);
92 list($url_builder_delete, $action_parameter_token_delete, $row_id_token_delete) =
93 $url_builder_delete->acquireParameters(
94 $query_params_namespace,
95 "action",
96 "tree_ids"
97 );
98
99 $actions = [];
100 if ($this->skill_management_access_manager->hasCreateTreePermission()) {
101 $actions["delete"] = $this->ui_fac->table()->action()->multi(
102 $this->lng->txt("delete"),
103 $url_builder_delete->withParameter($action_parameter_token_delete, "deleteTrees"),
104 $row_id_token_delete
105 );
106 }
107
108 return $actions;
109 }

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

Referenced by ILIAS\Skill\Table\TreeTable\getComponent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getColumns()

ILIAS\Skill\Table\TreeTable::getColumns ( )
protected

Definition at line 75 of file class.TreeTable.php.

75 : array
76 {
77 $columns = [
78 "title" => $this->ui_fac->table()->column()->link($this->lng->txt("title"))
79 ];
80
81 return $columns;
82 }

References ILIAS\Repository\lng().

Referenced by ILIAS\Skill\Table\TreeTable\getComponent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getComponent()

ILIAS\Skill\Table\TreeTable::getComponent ( )

Definition at line 60 of file class.TreeTable.php.

60 : UI\Component\Table\Data
61 {
62 $columns = $this->getColumns();
63 $actions = $this->getActions();
64 $data_retrieval = $this->getDataRetrieval();
65
66 $table = $this->ui_fac->table()
67 ->data($data_retrieval, $this->lng->txt("skmg_skill_trees"), $columns)
68 ->withId(self::class)
69 ->withActions($actions)
70 ->withRequest($this->request);
71
72 return $table;
73 }

References ILIAS\Skill\Table\TreeTable\getActions(), ILIAS\Skill\Table\TreeTable\getColumns(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ILIAS\Skill\Table\TreeTable::$ctrl
protected

Definition at line 35 of file class.TreeTable.php.

◆ $df

Data Factory ILIAS\Skill\Table\TreeTable::$df
protected

Definition at line 39 of file class.TreeTable.php.

◆ $lng

ilLanguage ILIAS\Skill\Table\TreeTable::$lng
protected

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

◆ $request

ServerRequestInterface ILIAS\Skill\Table\TreeTable::$request
protected

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

◆ $skill_management_access_manager

Access SkillManagementAccess ILIAS\Skill\Table\TreeTable::$skill_management_access_manager
protected

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

◆ $skill_manager

Service SkillInternalManagerService ILIAS\Skill\Table\TreeTable::$skill_manager
protected

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

◆ $skill_tree_factory

Tree SkillTreeFactory ILIAS\Skill\Table\TreeTable::$skill_tree_factory
protected

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

◆ $skill_tree_manager

Tree SkillTreeManager ILIAS\Skill\Table\TreeTable::$skill_tree_manager
protected

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

◆ $ui_fac

UI Factory ILIAS\Skill\Table\TreeTable::$ui_fac
protected

Definition at line 37 of file class.TreeTable.php.


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