5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
38 $a_mode = self::MODE_SCAT,
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
45 $this->access = $DIC->access();
48 $lng = $DIC->language();
50 $this->tref_id = $a_tref_id;
51 $ilCtrl->setParameter($a_parent_obj,
"tmpmode", $a_mode);
53 $this->mode = $a_mode;
54 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
56 $this->obj_id = $a_obj_id;
58 parent::__construct($a_parent_obj, $a_parent_cmd);
60 if ($this->mode == self::MODE_SCAT) {
61 $childs = $this->skill_tree->getChildsByTypeFilter(
63 array(
"skrt",
"skll",
"scat",
"sktr")
67 } elseif ($this->mode == self::MODE_SCTP) {
68 $childs = $this->skill_tree->getChildsByTypeFilter(
70 array(
"skrt",
"sktp",
"sctp")
76 if ($this->obj_id != $this->skill_tree->readRootId()) {
81 if ($this->tref_id == 0) {
82 $this->
addColumn($this->lng->txt(
""),
"",
"1px",
true);
84 $this->
addColumn($this->lng->txt(
"type"),
"",
"1px");
85 if ($this->tref_id == 0) {
86 $this->
addColumn($this->lng->txt(
"skmg_order"),
"",
"1px");
88 $this->
addColumn($this->lng->txt(
"title"));
93 if ($this->tref_id == 0 && $this->parent_obj->checkPermissionBool(
"write")) {
97 if ($a_mode == self::MODE_SCAT) {
112 switch ($a_set[
"type"]) {
115 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id", $a_set[
"child"]);
116 $ret =
$ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"listItems");
117 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id",
$_GET[
"obj_id"]);
123 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id", $a_set[
"child"]);
124 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id", $tid);
125 $ret =
$ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"listItems");
126 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id",
$_GET[
"obj_id"]);
127 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id",
$_GET[
"tref_id"]);
132 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id", $a_set[
"child"]);
133 $ret =
$ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"edit");
134 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id",
$_GET[
"obj_id"]);
141 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id", $a_set[
"child"]);
142 $ret =
$ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"edit");
143 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
$_GET[
"obj_id"]);
148 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id", $a_set[
"child"]);
149 $ret =
$ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"listItems");
150 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id",
$_GET[
"obj_id"]);
154 if ($this->tref_id == 0) {
155 $this->tpl->setCurrentBlock(
"cb");
156 $this->tpl->setVariable(
"CB_ID", $a_set[
"child"]);
157 $this->tpl->parseCurrentBlock();
159 $this->tpl->setCurrentBlock(
"nr");
160 $this->tpl->setVariable(
"OBJ_ID", $a_set[
"child"]);
161 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
162 $this->tpl->parseCurrentBlock();
165 $this->tpl->setVariable(
"HREF_TITLE",
$ret);
167 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static getIconPath($a_obj_id, $a_type, $a_size="", $a_status=0)
Get icon path.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static _lookupTemplateId($a_obj_id)
Lookup template ID.
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.
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 _lookupStatus($a_obj_id)
Lookup Status.
__construct( $a_parent_obj, $a_parent_cmd, $a_obj_id, $a_mode=self::MODE_SCAT, $a_tref_id=0)
Constructor.
fillRow($a_set)
Fill table row.