5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
41 $a_write_permission =
false 45 $this->ctrl = $DIC->ctrl();
46 $this->lng = $DIC->language();
47 $this->access = $DIC->access();
48 $this->tree = $DIC->repositoryTree();
51 $lng = $DIC->language();
53 $this->level_id = $a_level_id;
55 include_once(
"./Services/Skill/classes/class.ilSkillResources.php");
58 parent::__construct($a_parent_obj, $a_parent_cmd);
59 $this->
setData($this->resources->getResourcesOfLevel($a_level_id));
63 $this->
addColumn($this->lng->txt(
"type"),
"",
"1px");
64 $this->
addColumn($this->lng->txt(
"title"),
"");
65 $this->
addColumn($this->lng->txt(
"path"));
66 $this->
addColumn($this->lng->txt(
"skmg_suggested"));
67 $this->
addColumn($this->lng->txt(
"skmg_lp_triggers_level"));
70 $this->
setRowTemplate(
"tpl.level_resources_row.html",
"Services/Skill");
72 if ($a_write_permission) {
86 $ref_id = $a_set[
"rep_ref_id"];
90 if ($a_set[
"imparting"]) {
91 $this->tpl->touchBlock(
"sugg_checked");
94 include_once
"Services/Object/classes/class.ilObjectLP.php";
96 if ($a_set[
"trigger"]) {
97 $this->tpl->touchBlock(
"trig_checked");
99 $this->tpl->setCurrentBlock(
"trigger_checkbox");
100 $this->tpl->setVariable(
"TR_ID", $ref_id);
101 $this->tpl->parseCurrentBlock();
105 $this->tpl->setVariable(
"IMG",
ilUtil::img(ilObject::_getIcon($obj_id,
"tiny")));
106 $this->tpl->setVariable(
"ID", $ref_id);
109 $path_items = array();
110 foreach (
$path as $p) {
111 if ($p[
"type"] !=
"root" && $p[
"child"] != $ref_id) {
112 $path_items[] = $p[
"title"];
115 $this->tpl->setVariable(
"PATH", implode($path_items,
" > "));
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static isSupportedObjectType($a_type)
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct( $a_parent_obj, $a_parent_cmd, $a_skill_id, $a_tref_id, $a_level_id, $a_write_permission=false)
Constructor.
static _lookupObjId($a_id)
Manages resources for skills.
addMultiCommand($a_cmd, $a_text)
Add Command button.
TableGUI class for skill level resources.
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
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.
fillRow($a_set)
Fill table row.