36 $this->
ctrl = $DIC->ctrl();
37 $this->
lng = $DIC->language();
38 $this->tpl = $DIC[
"tpl"];
39 $this->
ui = $DIC->ui();
41 $this->
setId(
"cont_skll_mem_" . $a_cont_skills->
getId());
43 $this->container_skills = $a_cont_skills;
47 $this->
setTitle($this->
lng->txt(
"cont_cont_skills"));
52 $this->
addColumn($this->
lng->txt(
"cont_mem_skills"),
"");
61 $this->
setRowTemplate(
"tpl.cont_member_skill_row.html",
"Services/Container/Skills");
64 $this->
addMultiCommand(
"publishAssignments", $this->
lng->txt(
"cont_publish_assignment"));
66 $this->
addMultiCommand(
"deassignCompetencesConfirm", $this->
lng->txt(
"cont_deassign_competence"));
74 foreach ($p->getMembers() as $m) {
78 "name" =>
$name[
"lastname"] .
", " .
$name[
"firstname"],
79 "login" =>
$name[
"login"],
86 protected function fillRow(array $a_set): void
95 foreach ($mskills->getOrderedSkillLevels() as $sk) {
96 $tpl->setCurrentBlock(
"level");
99 $tpl->setVariable(
"PATH", $this->
getParentObject()->getPathString($sk[
"skill_id"], $sk[
"tref_id"]));
100 $tpl->parseCurrentBlock();
104 if ($mskills->getPublished()) {
111 $tpl->setVariable(
"NAME", $a_set[
"name"]);
112 $tpl->setVariable(
"ID", $a_set[
"id"]);
113 $tpl->setVariable(
"LOGIN", $a_set[
"login"]);
122 if (!$mskills->getPublished()) {
126 $dd = $ui->
factory()->dropdown()->standard($items);
128 $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
__construct(ilContSkillAdminGUI $a_parent_obj, string $a_parent_cmd, ilContainerSkills $a_cont_skills)
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.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
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.
__construct(Container $dic, ilPlugin $plugin)
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)
ilContainerSkills $container_skills
addMultiCommand(string $a_cmd, string $a_text)