5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 public function __construct($a_lm, $a_parent_obj, $a_parent_cmd)
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
31 $this->access = $DIC->access();
33 $lng = $DIC->language();
34 $ilAccess = $DIC->access();
35 $lng = $DIC->language();
40 parent::__construct($a_parent_obj, $a_parent_cmd);
42 foreach ($a_lm->getAutoGlossaries() as $glo_id) {
48 $this->
addColumn($this->lng->txt(
"title"),
"title");
49 $this->
addColumn($this->lng->txt(
"actions"));
52 $this->
setRowTemplate(
"tpl.lm_glossary_row.html",
"Modules/LearningModule");
66 $ilCtrl->setParameter($this->parent_obj,
"glo_id", $a_set[
"glo_id"]);
67 $this->tpl->setCurrentBlock(
"cmd");
68 $this->tpl->setVariable(
"CMD_HREF",
$ilCtrl->getLinkTarget($this->parent_obj,
"removeLMGlossary"));
69 $this->tpl->setVariable(
"CMD_TXT",
$lng->txt(
"remove"));
70 $this->tpl->parseCurrentBlock();
fillRow($a_set)
Fill table row.
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 glossary tables.
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.
__construct($a_lm, $a_parent_obj, $a_parent_cmd)
Constructor.