3 declare(strict_types=1);
    52         int $a_mode = self::MODE_SCAT,
    57         $this->
ctrl = $DIC->ctrl();
    58         $this->
lng = $DIC->language();
    59         $this->
access = $DIC->access();
    60         $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
    61         $this->ui_fac = $DIC->ui()->factory();
    62         $this->ui_ren = $DIC->ui()->renderer();
    64         $ilCtrl = $DIC->ctrl();
    65         $lng = $DIC->language();
    67         $this->tref_id = $a_tref_id;
    68         $ilCtrl->setParameter($a_parent_obj, 
"tmpmode", $a_mode);
    70         $this->requested_node_id = $this->admin_gui_request->getNodeId();
    71         $this->requested_tref_id = $this->admin_gui_request->getTrefId();
    72         $this->requested_ref_id = $this->admin_gui_request->getRefId();
    74         $this->mode = $a_mode;
    75         $this->skill_tree = $DIC->skills()->internal()->repo()->getTreeRepo()->getTreeForNodeId($a_obj_id);
    76         $this->tree_access_manager = $DIC->skills()->internal()->manager()->getTreeAccessManager($this->requested_ref_id);
    80         if ($this->mode == self::MODE_SCAT) {
    81             $this->manage_perm = $this->tree_access_manager->hasManageCompetencesPermission();
    82             $childs = $this->skill_tree->getChildsByTypeFilter(
    84                 array(
"skrt", 
"skll", 
"scat", 
"sktr")
    88         } elseif ($this->mode == self::MODE_SCTP) {
    89             $this->manage_perm = $this->tree_access_manager->hasManageCompetenceTemplatesPermission();
    90             $childs = $this->skill_tree->getChildsByTypeFilter(
    92                 array(
"skrt", 
"sktp", 
"sctp")
   100         if ($this->tref_id == 0 && $this->manage_perm) {
   104         if ($this->tref_id == 0) {
   105             $this->
addColumn($this->
lng->txt(
"skmg_order"), 
"", 
"1px");
   110         $this->
setRowTemplate(
"tpl.skill_cat_row.html", 
"Services/Skill");
   112         if ($this->tref_id == 0 && $this->manage_perm) {
   116             if ($a_mode == self::MODE_SCAT) {
   123     protected function fillRow(array $a_set): void
   129         switch ($a_set[
"type"]) {
   133                 $ret = $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui", 
"listItems");
   134                 $ilCtrl->setParameterByClass(
"ilskillcategorygui", 
"node_id", $this->requested_node_id);
   140                 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui", 
"tref_id", $a_set[
"child"]);
   141                 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui", 
"node_id", $tid);
   142                 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui", 
"listItems");
   143                 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui", 
"node_id", $this->requested_node_id);
   144                 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui", 
"tref_id", $this->requested_tref_id);
   149                 $ilCtrl->setParameterByClass(
"ilbasicskillgui", 
"node_id", $a_set[
"child"]);
   150                 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui", 
"edit");
   151                 $ilCtrl->setParameterByClass(
"ilbasicskillgui", 
"node_id", $this->requested_node_id);
   158                 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui", 
"node_id", $a_set[
"child"]);
   159                 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui", 
"edit");
   160                 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui", 
"node_id", $this->requested_node_id);
   165                 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui", 
"node_id", $a_set[
"child"]);
   166                 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui", 
"listItems");
   167                 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui", 
"node_id", $this->requested_node_id);
   171         if ($this->tref_id == 0) {
   172             if ($this->manage_perm) {
   173                 $this->tpl->setCurrentBlock(
"cb");
   174                 $this->tpl->setVariable(
"CB_ID", $a_set[
"child"]);
   175                 $this->tpl->parseCurrentBlock();
   178             $this->tpl->setCurrentBlock(
"nr");
   179             $this->tpl->setVariable(
"OBJ_ID", $a_set[
"child"]);
   180             $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
   181             if (!$this->manage_perm) {
   182                 $this->tpl->touchBlock(
"disabled");
   184             $this->tpl->parseCurrentBlock();
   187         $this->tpl->setVariable(
"HREF_TITLE", $ret);
   189         $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
   191             (
int) $a_set[
"child"],
   196         $icon = $this->ui_fac->symbol()->icon()->custom(
   201         $this->tpl->setVariable(
"ICON", $this->ui_ren->render(
$icon));
 
static _lookupTemplateId(int $a_obj_id)
 
static _lookupStatus(int $a_obj_id)
 
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...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
Request wrapper for guis in skill administration. 
 
__construct( $a_parent_obj, string $a_parent_cmd, int $a_obj_id, int $a_mode=self::MODE_SCAT, int $a_tref_id=0)
 
setParameterByClass(string $a_class, string $a_parameter, $a_value)
 
ILIAS UI Renderer $ui_ren
 
SkillTreeAccess $tree_access_manager
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
static getIconPath(int $a_obj_id, string $a_type, string $a_size="", int $a_status=0)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
SkillAdminGUIRequest $admin_gui_request
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
addMultiCommand(string $a_cmd, string $a_text)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)