5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
23 $this->
setId(
"tax_adm_repo");
25 parent::__construct($a_parent_obj, $a_parent_cmd);
27 $this->
addColumn($this->lng->txt(
"obj_tax"),
"tax_title");
28 $this->
addColumn($this->lng->txt(
"status"),
"status");
29 $this->
addColumn($this->lng->txt(
"object"),
"obj_title");
34 $this->
setRowTemplate(
"tpl.tax_admin_repo_row.html",
"Services/Taxonomy");
43 include_once
"Services/Link/classes/class.ilLink.php";
44 foreach($this->obj->getRepositoryTaxonomies() as $tax_id => $objs)
46 foreach($objs as $obj_id => $obj)
48 $idx = $tax_id.
"_".$obj_id;
49 if(!isset(
$data[$idx]))
52 "tax_title" => $obj[
"tax_title"]
53 ,
"obj_title" => $obj[
"obj_title"]
54 ,
"tax_status" => $obj[
"tax_status"]
55 ,
"references" =>
array()
63 $data[$idx][
"references"][$obj[
"ref_id"]] =
76 foreach($a_set[
"references"] as $ref)
78 $this->tpl->setCurrentBlock(
"obj_bl");
79 $this->tpl->setVariable(
"OBJ_TITLE", $a_set[
"obj_title"]);
80 $this->tpl->setVariable(
"OBJ_PATH", $ref[
"path"]);
81 $this->tpl->setVariable(
"OBJ_URL", $ref[
"url"]);
82 $this->tpl->parseCurrentBlock();
85 if($a_set[
"tax_status"])
87 $this->tpl->setVariable(
"TAX_STATUS", $this->lng->txt(
"active"));
88 $this->tpl->setVariable(
"TAX_STATUS_COLOR",
"smallgreen");
92 $this->tpl->setVariable(
"TAX_STATUS", $this->lng->txt(
"inactive"));
93 $this->tpl->setVariable(
"TAX_STATUS_COLOR",
"smallred");
96 $this->tpl->setVariable(
"TAX_TITLE", $a_set[
"tax_title"]);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
TableGUI class for repository taxonomies.
__construct($a_parent_obj, $a_parent_cmd, ilObjTaxonomyAdministration $a_obj)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
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 _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")