5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
40 $this->glossary = $a_glossary;
41 $this->
id =
"glo_glo";
42 $this->lng = $DIC->language();
43 $this->ctrl = $DIC->ctrl();
45 parent::__construct($a_parent_obj, $a_parent_cmd);
51 $this->
setTitle($this->lng->txt(
"cont_auto_glossaries"));
53 $this->
addColumn($this->lng->txt(
"title"),
"title");
54 $this->
addColumn($this->lng->txt(
"actions"));
56 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
57 $this->
setRowTemplate(
"tpl.glo_glossary_auto_link_row.html",
"Modules/Glossary");
68 $this->ctrl->setParameter($this->parent_obj,
"glo_id", $a_set[
"glo_id"]);
69 $this->tpl->setCurrentBlock(
"cmd");
70 $this->tpl->setVariable(
"CMD_HREF", $this->ctrl->getLinkTarget($this->parent_obj,
"removeGlossary"));
71 $this->tpl->setVariable(
"CMD_TXT", $this->lng->txt(
"remove"));
72 $this->tpl->parseCurrentBlock();
__construct(ilObjGlossary $a_glossary, $a_parent_obj, $a_parent_cmd)
Constructor.
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
TableGUI class for auto link glossaries.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
getAutoGlossaries()
Get auto glossaries.
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.
fillRow($a_set)
Fill table row.