ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilPersonalSkillTableGUI.php
Go to the documentation of this file.
1 <?php
2 
26 {
28  protected ilObjUser $user;
29 
30  public function __construct($a_parent_obj, string $a_parent_cmd)
31  {
32  global $DIC;
33 
34  $this->ctrl = $DIC->ctrl();
35  $this->lng = $DIC->language();
36  $this->access = $DIC->access();
37  $this->user = $DIC->user();
38  $ilCtrl = $DIC->ctrl();
39  $lng = $DIC->language();
40  $ilAccess = $DIC->access();
41  $lng = $DIC->language();
42  $ilUser = $DIC->user();
43 
44  parent::__construct($a_parent_obj, $a_parent_cmd);
45 
47  $this->setTitle($lng->txt("skills"));
48 
49  $this->addColumn("", "", "1", true);
50  $this->addColumn($this->lng->txt("title"), "title");
51  $this->addColumn($this->lng->txt("skmg_materials"));
52  $this->addColumn($this->lng->txt("actions"));
53 
54  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
55  $this->setRowTemplate("tpl.personal_skill_row.html", "Services/Skill");
56 
57  $this->addMultiCommand("confirmSkillRemove", $lng->txt("skmg_remove_skills"));
58  }
59 
60  protected function fillRow(array $a_set): void
61  {
62  $lng = $this->lng;
63  $ilCtrl = $this->ctrl;
64 
65  // assign materials
66  $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", $a_set["skill_node_id"]);
67  $this->tpl->setCurrentBlock("cmd");
68  $this->tpl->setVariable("TXT_CMD", $lng->txt("skmg_assign_materials"));
69  $this->tpl->setVariable(
70  "HREF_CMD",
71  $ilCtrl->getLinkTargetByClass("ilpersonalskillsgui", "assignMaterials")
72  );
73  $this->tpl->parseCurrentBlock();
74  $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", "");
75 
76  $this->tpl->setVariable("SKL_NODE_ID", $a_set["skill_node_id"]);
77  $this->tpl->setVariable("TITLE", $a_set["title"]);
78  }
79 }
setData(array $a_data)
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)
setParameterByClass(string $a_class, string $a_parameter, $a_value)
ilLanguage $lng
global $DIC
Definition: feed.php:28
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static getSelectedUserSkills(int $a_user_id)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
$ilUser
Definition: imgupload.php:34
__construct($a_parent_obj, string $a_parent_cmd)
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)