33 $a_mode = self::MODE_SCAT,
38 $this->ctrl = $DIC->ctrl();
39 $this->lng = $DIC->language();
40 $this->access = $DIC->access();
42 $ilCtrl = $DIC->ctrl();
43 $lng = $DIC->language();
45 $this->tref_id = $a_tref_id;
46 $ilCtrl->setParameter($a_parent_obj,
"tmpmode", $a_mode);
48 $this->mode = $a_mode;
50 $this->obj_id = $a_obj_id;
54 if ($this->mode == self::MODE_SCAT) {
55 $childs = $this->skill_tree->getChildsByTypeFilter(
57 array(
"skrt",
"skll",
"scat",
"sktr")
61 } elseif ($this->mode == self::MODE_SCTP) {
62 $childs = $this->skill_tree->getChildsByTypeFilter(
64 array(
"skrt",
"sktp",
"sctp")
70 if ($this->obj_id != $this->skill_tree->readRootId()) {
75 if ($this->tref_id == 0) {
76 $this->
addColumn($this->lng->txt(
""),
"",
"1px",
true);
78 $this->
addColumn($this->lng->txt(
"type"),
"",
"1px");
79 if ($this->tref_id == 0) {
80 $this->
addColumn($this->lng->txt(
"skmg_order"),
"",
"1px");
82 $this->
addColumn($this->lng->txt(
"title"));
87 if ($this->tref_id == 0 && $this->parent_obj->checkPermissionBool(
"write")) {
91 if ($a_mode == self::MODE_SCAT) {
106 switch ($a_set[
"type"]) {
109 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id", $a_set[
"child"]);
110 $ret = $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"listItems");
111 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id",
$_GET[
"obj_id"]);
117 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id", $a_set[
"child"]);
118 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id", $tid);
119 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"listItems");
120 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id",
$_GET[
"obj_id"]);
121 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id",
$_GET[
"tref_id"]);
126 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id", $a_set[
"child"]);
127 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"edit");
128 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id",
$_GET[
"obj_id"]);
135 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id", $a_set[
"child"]);
136 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"edit");
137 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
$_GET[
"obj_id"]);
142 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id", $a_set[
"child"]);
143 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"listItems");
144 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id",
$_GET[
"obj_id"]);
148 if ($this->tref_id == 0) {
149 $this->tpl->setCurrentBlock(
"cb");
150 $this->tpl->setVariable(
"CB_ID", $a_set[
"child"]);
151 $this->tpl->parseCurrentBlock();
153 $this->tpl->setCurrentBlock(
"nr");
154 $this->tpl->setVariable(
"OBJ_ID", $a_set[
"child"]);
155 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
156 $this->tpl->parseCurrentBlock();
159 $this->tpl->setVariable(
"HREF_TITLE",
$ret);
161 $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.
__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.
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.