5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
20 function __construct($a_parent_obj, $a_parent_cmd, $a_skill_id, $a_tref_id,
25 $this->level_id = $a_level_id;
27 include_once(
"./Services/Skill/classes/class.ilSkillResources.php");
30 parent::__construct($a_parent_obj, $a_parent_cmd);
31 $this->
setData($this->resources->getResourcesOfLevel($a_level_id));
32 $this->
setTitle($lng->txt(
"resources"));
35 $this->
addColumn($this->lng->txt(
"type"),
"",
"1px");
36 $this->
addColumn($this->lng->txt(
"title"),
"");
37 $this->
addColumn($this->lng->txt(
"path"));
40 $this->
setRowTemplate(
"tpl.level_resources_row.html",
"Services/Skill");
42 $this->
addMultiCommand(
"confirmLevelResourcesRemoval", $lng->txt(
"remove"));
58 $this->tpl->setVariable(
"ID",
$ref_id);
61 $path_items =
array();
64 if ($p[
"type"] !=
"root" && $p[
"child"] !=
$ref_id)
66 $path_items[] = $p[
"title"];
69 $this->tpl->setVariable(
"PATH", implode($path_items,
" > "));
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
__construct($a_parent_obj, $a_parent_cmd, $a_skill_id, $a_tref_id, $a_level_id)
Constructor.
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static _lookupObjId($a_id)
Manages resources for skills.
addMultiCommand($a_cmd, $a_text)
Add Command button.
TableGUI class for skill level resources.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
fillRow($a_set)
Fill table row.
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.