5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
48 $this->ctrl = $DIC->ctrl();
49 $this->lng = $DIC->language();
50 $this->tpl = $DIC[
"tpl"];
51 $this->ui = $DIC->ui();
53 $this->
setId(
"cont_skll_mem_" . $a_cont_skills->
getId());
55 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
58 $this->container_skills = $a_cont_skills;
60 parent::__construct($a_parent_obj, $a_parent_cmd);
62 $this->
setTitle($this->lng->txt(
"cont_cont_skills"));
65 $this->
addColumn($this->lng->txt(
"name"),
"name");
66 $this->
addColumn($this->lng->txt(
"login"),
"login");
67 $this->
addColumn($this->lng->txt(
"cont_mem_skills"),
"");
68 $this->
addColumn($this->lng->txt(
"cont_published"),
"");
69 $this->
addColumn($this->lng->txt(
"actions"));
75 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
76 $this->
setRowTemplate(
"tpl.cont_member_skill_row.html",
"Services/Container/Skills");
79 $this->
addMultiCommand(
"publishAssignments", $this->lng->txt(
"cont_publish_assignment"));
81 $this->
addMultiCommand(
"deassignCompetencesConfirm", $this->lng->txt(
"cont_deassign_competence"));
92 include_once(
"./Modules/Course/classes/class.ilCourseParticipants.php");
96 foreach ($p->getMembers() as
$m) {
100 "name" =>
$name[
"lastname"] .
", " .
$name[
"firstname"],
101 "login" => $name[
"login"],
120 include_once(
"./Services/Container/Skills/classes/class.ilContainerMemberSkills.php");
122 foreach ($mskills->getOrderedSkillLevels() as $sk) {
123 $tpl->setCurrentBlock(
"level");
126 $tpl->setVariable(
"PATH", $this->
getParentObject()->getPathString($sk[
"skill_id"], $sk[
"tref_id"]));
127 $tpl->parseCurrentBlock();
131 if ($mskills->getPublished()) {
132 $tpl->setVariable(
"PUBLISHED",
$lng->txt(
"yes"));
134 $tpl->setVariable(
"PUBLISHED",
$lng->txt(
"no"));
138 $tpl->setVariable(
"NAME", $a_set[
"name"]);
139 $tpl->setVariable(
"ID", $a_set[
"id"]);
140 $tpl->setVariable(
"LOGIN", $a_set[
"login"]);
142 $ctrl->setParameter($this->parent_obj,
"usr_id", $a_set[
"id"]);
145 $b =
$ui->factory()->button();
147 $items[] = $b->shy(
$lng->txt(
"cont_assign_competence"),
$ctrl->getLinkTarget($this->parent_obj,
"assignCompetences"));
149 if (!$mskills->getPublished()) {
150 $items[] = $b->shy(
$lng->txt(
"cont_publish_assignment"),
$ctrl->getLinkTarget($this->parent_obj,
"publishAssignments"));
152 $items[] = $b->shy(
$lng->txt(
"cont_deassign_competence"),
$ctrl->getLinkTarget($this->parent_obj,
"deassignCompetencesConfirm"));
153 $dd =
$ui->factory()->dropdown()->standard($items);
155 $tpl->setVariable(
"ACTIONS",
$ui->renderer()->render($dd));
static _lookupName($a_user_id)
lookup user name
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static lookupLevelTitle($a_id)
Lookup level title.
TableGUI class for container members / skill assignments.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd, ilContainerSkills $a_cont_skills)
Constructor.
fillRow($a_set)
Fill table row.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static getInstanceByObjId($a_obj_id)
Get instance by obj type.
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.