35 $this->
user = $DIC->user();
36 $this->lng = $DIC->language();
37 $this->ctrl = $DIC->ctrl();
41 if (!$this->ws_tree->getRootId()) {
46 $this->top_skill_id = $a_top_skill_id;
47 $this->tref_id = (int) $a_tref_id;
48 $this->basic_skill_id = $a_basic_skill_id;
53 $path = $stree->getPathFull($this->basic_skill_id);
55 foreach ($path as $p) {
56 if ($p[
"type"] !=
"skrt") {
57 $title .= $sep . $p[
"title"];
67 $this->
addColumn($this->lng->txt(
"skmg_skill_level"));
68 $this->
addColumn($this->lng->txt(
"description"));
69 $this->
addColumn($this->lng->txt(
"skmg_materials"));
70 $this->
addColumn($this->lng->txt(
"actions"));
74 $this->
setRowTemplate(
"tpl.skill_materials_row.html",
"Services/Skill");
91 foreach ($this->skill->getLevelData() as $k => $v) {
108 $ilCtrl->setParameter($this->parent_obj,
"level_id", $a_set[
"id"]);
109 foreach ($mat as $m) {
110 $this->tpl->setCurrentBlock(
"mat");
111 $obj_id = $this->ws_tree->lookupObjectId($m[
"wsp_id"]);
112 $this->tpl->setVariable(
116 $this->tpl->setVariable(
120 $this->tpl->setVariable(
"TXT_REMOVE",
$lng->txt(
"remove"));
121 $ilCtrl->setParameter($this->parent_obj,
"wsp_id", $m[
"wsp_id"]);
122 $this->tpl->setVariable(
"HREF_REMOVE", $ilCtrl->getLinkTarget($this->parent_obj,
"removeMaterial"));
124 $obj_id = $this->ws_tree->lookupObjectId($m[
"wsp_id"]);
125 $url = $this->ws_access->getGotoLink($m[
"wsp_id"], $obj_id);
126 $this->tpl->setVariable(
"HREF_MAT",
$url);
127 $this->tpl->parseCurrentBlock();
130 $this->tpl->setCurrentBlock(
"cmd");
131 $this->tpl->setVariable(
"HREF_CMD", $ilCtrl->getLinkTarget(
135 $this->tpl->setVariable(
"TXT_CMD",
$lng->txt(
"skmg_assign_materials"));
136 $this->tpl->parseCurrentBlock();
137 $ilCtrl->setParameter($this->parent_obj,
"level_id",
"");
139 $this->tpl->setVariable(
"LEVEL_ID", $a_set[
"id"]);
140 $this->tpl->setVariable(
"SKILL_ID", $this->basic_skill_id);
141 $this->tpl->setVariable(
"TXT_SKILL", $a_set[
"title"]);
142 $this->tpl->setVariable(
"TXT_SKILL_DESC", $a_set[
"description"]);
createTreeForUser($a_user_id)
Create personal workspace tree for user.
Access handler for personal workspace.
static _lookupTitle($a_id)
lookup object title
Assign materials to skill levels table.
Tree handler for personal workspace.
__construct( $a_parent_obj, $a_parent_cmd, $a_top_skill_id, $a_tref_id, $a_basic_skill_id)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getInstance($a_id=0)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupType($a_id, $a_reference=false)
lookup object type
static getAssignedMaterial($a_user_id, $a_tref_id, $a_level)
Get assigned material (for a skill level and user)
disable($a_module_name)
diesables particular modules of table
__construct(Container $dic, ilPlugin $plugin)
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.
fillRow($a_set)
Fill table row.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
setLimit($a_limit=0, $a_default_limit=0)