ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilPageMultiLangTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 function __construct($a_parent_obj, $a_parent_cmd)
21 {
22 global $ilCtrl, $lng, $lng;
23
24 $lng->loadLanguageModule("meta");
25
26 parent::__construct($a_parent_obj, $a_parent_cmd);
27 $this->setTitle($lng->txt("cont_languages"));
28
29 $this->addColumn("", "", "1");
30 $this->addColumn($this->lng->txt("cont_language"));
31
32 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
33 $this->setRowTemplate("tpl.page_ml_row.html", "Services/COPage");
34
35 //if (count($this->getData()) > 1)
36 //{
37 $this->addMultiCommand("confirmRemoveLanguages", $lng->txt("remove"));
38 //}
39 //$this->addCommandButton("", $lng->txt(""));
40 }
41
45 protected function fillRow($a_set)
46 {
47 global $lng;
48
49 if (!$a_set["master"])
50 {
51 $this->tpl->setCurrentBlock("cb");
52 $this->tpl->setVariable("CB_LANG", $a_set["lang"]);
53 $this->tpl->parseCurrentBlock();
54 }
55 else
56 {
57 $this->tpl->setVariable("ML", "(".$lng->txt("cont_master_lang").")");
58 }
59 $this->tpl->setVariable("LANG", $lng->txt("meta_l_".$a_set["lang"]));
60 }
61
62}
63?>
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40