5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
37 $this->ctrl = $DIC->ctrl();
38 $this->lng = $DIC->language();
39 $this->access = $DIC->access();
42 $lng = $DIC->language();
44 $this->
setId(
"tax_ass_it");
47 $this->node_id = $a_node_id;
48 $this->comp_id = $a_comp_id;
49 $this->obj_id = $a_obj_id;
50 $this->item_type = $a_item_type;
51 $this->info_obj = $a_info_obj;
53 parent::__construct($a_parent_obj, $a_parent_cmd);
55 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
57 include_once(
"./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php");
58 $tax_ass =
new ilTaxNodeAssignment($this->comp_id, $this->obj_id, $this->item_type, $this->tax->getId());
59 $this->
setData($tax_ass->getAssignmentsOfNode($this->node_id));
62 $this->
addColumn($this->lng->txt(
"tax_order"));
66 $this->
addColumn($this->lng->txt(
"title"));
69 $this->
setRowTemplate(
"tpl.tax_ass_items_row.html",
"Services/Taxonomy");
81 if (in_array($a_field, array(
"order_nr"))) {
96 $this->tpl->setVariable(
"ONODE_ID", $a_set[
"item_id"]);
97 $this->tpl->setVariable(
"ORDER_NR", (
int) $a_set[
"order_nr"]);
98 $this->tpl->setVariable(
"TITLE", $this->info_obj->getTitle(
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
Taxonomy node <-> item assignment.
__construct( $a_parent_obj, $a_parent_cmd, $a_node_id, $a_tax, $a_comp_id, $a_obj_id, $a_item_type, $a_info_obj)
Constructor.
TableGUI class for taxonomy list.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
fillRow($a_set)
Fill table row.
numericOrdering($a_field)
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.
setLimit($a_limit=0, $a_default_limit=0)