5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
39 public function __construct($a_parent_obj, $a_parent_cmd, $a_lm, $a_lang)
43 $this->ctrl = $DIC->ctrl();
45 $this->tpl = $DIC[
"tpl"];
46 $this->lng = $DIC->language();
47 $this->lang = $a_lang;
49 $this->
setId(
"lm_short_title");
51 parent::__construct($a_parent_obj, $a_parent_cmd);
52 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
54 $this->
setTitle($this->lng->txt(
"cont_short_titles"));
56 $this->
addColumn($this->lng->txt(
"title"));
57 $this->
addColumn($this->lng->txt(
"cont_short_title"));
59 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
60 $this->
setRowTemplate(
"tpl.short_title_row.html",
"Modules/LearningModule");
71 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
72 $this->tpl->setVariable(
"DEFAULT_TITLE", $a_set[
"default_title"]);
73 $this->tpl->setVariable(
"DEFAULT_SHORT_TITLE", $a_set[
"default_short_title"]);
74 $this->tpl->setVariable(
"ID", $a_set[
"obj_id"]);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static getShortTitles($a_lm_id, $a_lang="-")
Get short titles.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd, $a_lm, $a_lang)
Constructor.
fillRow($a_set)
Fill table row.
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.
TableGUI class for lm short titles.