5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
26 $this->ctrl = $DIC->ctrl();
27 $this->lng = $DIC->language();
28 $this->access = $DIC->access();
30 $lng = $DIC->language();
31 $ilAccess = $DIC->access();
32 $lng = $DIC->language();
36 $this->
setId(
"tax_adm_repo");
38 parent::__construct($a_parent_obj, $a_parent_cmd);
40 $this->
addColumn($this->lng->txt(
"obj_tax"),
"tax_title");
41 $this->
addColumn($this->lng->txt(
"status"),
"status");
42 $this->
addColumn($this->lng->txt(
"object"),
"obj_title");
47 $this->
setRowTemplate(
"tpl.tax_admin_repo_row.html",
"Services/Taxonomy");
56 include_once
"Services/Link/classes/class.ilLink.php";
57 foreach ($this->obj->getRepositoryTaxonomies() as $tax_id => $objs) {
58 foreach ($objs as $obj_id => $obj) {
59 $idx = $tax_id .
"_" . $obj_id;
60 if (!isset(
$data[$idx])) {
62 "tax_title" => $obj[
"tax_title"]
63 ,
"obj_title" => $obj[
"obj_title"]
64 ,
"tax_status" => $obj[
"tax_status"]
65 ,
"references" =>
array()
73 $data[$idx][
"references"][$obj[
"ref_id"]] =
86 foreach ($a_set[
"references"] as $ref) {
87 $this->tpl->setCurrentBlock(
"obj_bl");
88 $this->tpl->setVariable(
"OBJ_TITLE", $a_set[
"obj_title"]);
89 $this->tpl->setVariable(
"OBJ_PATH", $ref[
"path"]);
90 $this->tpl->setVariable(
"OBJ_URL", $ref[
"url"]);
91 $this->tpl->parseCurrentBlock();
94 if ($a_set[
"tax_status"]) {
95 $this->tpl->setVariable(
"TAX_STATUS", $this->lng->txt(
"active"));
96 $this->tpl->setVariable(
"TAX_STATUS_COLOR",
"smallgreen");
98 $this->tpl->setVariable(
"TAX_STATUS", $this->lng->txt(
"inactive"));
99 $this->tpl->setVariable(
"TAX_STATUS_COLOR",
"smallred");
102 $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="")