5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
39 $lng = $DIC->language();
41 if ($a_node_id ==
"") {
42 $a_node_id = $a_tree->readRootId();
45 $this->tree = $a_tree;
47 $this->node_id = $a_node_id;
49 parent::__construct($a_parent_obj, $a_parent_cmd);
51 $childs = $this->tree->getChildsByTypeFilter(
65 $this->
addColumn($this->lng->txt(
""),
"",
"1px",
true);
67 $this->
addColumn($this->lng->txt(
"tax_order"),
"order_nr",
"1px");
71 $this->
addColumn($this->lng->txt(
"title"));
89 if (in_array($a_field,
array(
"order_nr"))) {
102 $ilCtrl->setParameter($this->parent_obj,
"tax_node", $a_set[
"child"]);
103 $ret =
$ilCtrl->getLinkTargetByClass(
"ilobjtaxonomygui",
"listNodes");
104 $ilCtrl->setParameter($this->parent_obj,
"tax_node",
$_GET[
"tax_node"]);
106 $this->tpl->setCurrentBlock(
"order");
107 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
108 $this->tpl->setVariable(
"ONODE_ID", $a_set[
"child"]);
109 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
"HREF_TITLE",
$ret);
115 $this->tpl->setVariable(
"NODE_ID", $a_set[
"child"]);
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 prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct( $a_parent_obj, $a_parent_cmd, $a_tree, $a_node_id, $a_tax)
Constructor.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
TableGUI class for taxonomies.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
numericOrdering($a_field)
Should this field be sorted numeric?
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.