3 declare(strict_types=1);
40 $this->
ctrl = $DIC->ctrl();
41 $this->
lng = $DIC->language();
42 $this->tpl = $DIC[
"tpl"];
43 $this->
ui = $DIC->ui();
46 $this->
setId(
"cont_skll_mem_" . $this->cont_obj->getId());
47 $this->cont_skill_manager = $DIC->skills()->internalContainer()->manager()->getSkillManager(
48 $this->cont_obj->getId(),
49 $this->cont_obj->getRefId()
54 $this->
setTitle($this->
lng->txt(
"cont_cont_skills"));
59 $this->
addColumn($this->
lng->txt(
"cont_mem_skills"),
"");
68 $this->
setRowTemplate(
"tpl.cont_member_skill_row.html",
"Services/Container/Skills");
71 $this->
addMultiCommand(
"publishAssignments", $this->
lng->txt(
"cont_publish_assignment"));
73 $this->
addMultiCommand(
"deassignCompetencesConfirm", $this->
lng->txt(
"cont_deassign_competence"));
81 foreach ($p->getMembers() as $m) {
85 "name" => $name[
"lastname"] .
", " . $name[
"firstname"],
86 "login" => $name[
"login"],
93 protected function fillRow(array $a_set): void
100 $user_id = (
int) $a_set[
"id"];
103 foreach ($this->cont_skill_manager->getMemberSkillLevelsForContainerOrdered($user_id) as $sk) {
104 $tpl->setCurrentBlock(
"level");
107 $tpl->setVariable(
"PATH", $this->
getParentObject()->getPathString($sk->getBaseSkillId(), $sk->getTrefId()));
108 $tpl->parseCurrentBlock();
112 if ($this->cont_skill_manager->getPublished($user_id)) {
119 $tpl->setVariable(
"NAME", $a_set[
"name"]);
120 $tpl->setVariable(
"ID", $a_set[
"id"]);
121 $tpl->setVariable(
"LOGIN", $a_set[
"login"]);
130 if (!$this->cont_skill_manager->getPublished($user_id)) {
134 $dd = $ui->
factory()->dropdown()->standard($items);
136 $tpl->setVariable(
"ACTIONS", $ui->
renderer()->render($dd));
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)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getInstanceByObjId(int $a_obj_id)
Get instance by obj type.
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
static _lookupName(int $a_user_id)
lookup user name
static lookupLevelTitle(int $a_id)
TableGUI class for container members / skill assignments.
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)
Provides fluid interface to RBAC services.
setDefaultOrderField(string $a_defaultorderfield)
renderer()
Get a renderer for UI components.
ContainerSkillManager $cont_skill_manager
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
__construct(ilContSkillAdminGUI $a_parent_obj, string $a_parent_cmd, ilContainer $cont_obj)
setDefaultOrderDirection(string $a_defaultorderdirection)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
Container skills administration.
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)
factory()
Get the factory that crafts UI components.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
addMultiCommand(string $a_cmd, string $a_text)