5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $a_mode = self::MODE_SCAT, $a_tref_id = 0)
29 $this->tref_id = $a_tref_id;
30 $ilCtrl->setParameter($a_parent_obj,
"tmpmode", $a_mode);
32 $this->mode = $a_mode;
33 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
35 $this->obj_id = $a_obj_id;
37 parent::__construct($a_parent_obj, $a_parent_cmd);
39 if ($this->mode == self::MODE_SCAT)
41 $childs = $this->skill_tree->getChildsByTypeFilter($a_obj_id,
42 array(
"skrt",
"skll",
"scat",
"sktr"));
46 else if ($this->mode == self::MODE_SCTP)
48 $childs = $this->skill_tree->getChildsByTypeFilter($a_obj_id,
49 array(
"skrt",
"sktp",
"sctp"));
54 if ($this->obj_id != $this->skill_tree->readRootId())
58 $this->
setTitle($lng->txt(
"skmg_items"));
60 if ($this->tref_id == 0)
62 $this->
addColumn($this->lng->txt(
""),
"",
"1px",
true);
64 $this->
addColumn($this->lng->txt(
"type"),
"",
"1px");
65 if ($this->tref_id == 0)
67 $this->
addColumn($this->lng->txt(
"skmg_order"),
"",
"1px");
69 $this->
addColumn($this->lng->txt(
"title"));
74 if ($this->tref_id == 0 && $this->parent_obj->checkPermissionBool(
"write"))
79 if ($a_mode == self::MODE_SCAT)
94 switch($a_set[
"type"])
98 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id", $a_set[
"child"]);
99 $ret = $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"listItems");
100 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id",
$_GET[
"obj_id"]);
106 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id", $a_set[
"child"]);
107 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id", $tid);
108 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"listItems");
109 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id",
$_GET[
"obj_id"]);
110 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id",
$_GET[
"tref_id"]);
115 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id", $a_set[
"child"]);
116 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"edit");
117 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id",
$_GET[
"obj_id"]);
124 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id", $a_set[
"child"]);
125 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"edit");
126 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
$_GET[
"obj_id"]);
131 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id", $a_set[
"child"]);
132 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"listItems");
133 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id",
$_GET[
"obj_id"]);
137 if ($this->tref_id == 0)
139 $this->tpl->setCurrentBlock(
"cb");
140 $this->tpl->setVariable(
"CB_ID", $a_set[
"child"]);
141 $this->tpl->parseCurrentBlock();
143 $this->tpl->setCurrentBlock(
"nr");
144 $this->tpl->setVariable(
"OBJ_ID", $a_set[
"child"]);
145 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
146 $this->tpl->parseCurrentBlock();
149 $this->tpl->setVariable(
"HREF_TITLE",
$ret);
151 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static getIconPath($a_obj_id, $a_type, $a_size="", $a_status=0)
Get icon path.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_mode=self::MODE_SCAT, $a_tref_id=0)
Constructor.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static _lookupTemplateId($a_obj_id)
Lookup template ID.
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.
static _lookupStatus($a_obj_id)
Lookup Status.
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.