ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
5 include_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 ?>