ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPageMultiLangTableGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 public function __construct(
27 object $a_parent_obj,
28 string $a_parent_cmd
29 ) {
30 global $DIC;
31
32 $this->ctrl = $DIC->ctrl();
33 $this->lng = $DIC->language();
34 $ilCtrl = $DIC->ctrl();
35 $lng = $DIC->language();
36 $lng = $DIC->language();
37
38 $lng->loadLanguageModule("meta");
39
40 parent::__construct($a_parent_obj, $a_parent_cmd);
41 $this->setTitle($lng->txt("cont_languages"));
42
43 $this->addColumn("", "", "1");
44 $this->addColumn($this->lng->txt("cont_language"));
45
46 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
47 $this->setRowTemplate("tpl.page_ml_row.html", "components/ILIAS/COPage");
48
49 //if (count($this->getData()) > 1)
50 //{
51 $this->addMultiCommand("confirmRemoveLanguages", $lng->txt("remove"));
52 //}
53 //$this->addCommandButton("", $lng->txt(""));
54 }
55
59 protected function fillRow(array $a_set): void
60 {
62
63 if (!$a_set["master"]) {
64 $this->tpl->setCurrentBlock("cb");
65 $this->tpl->setVariable("CB_LANG", $a_set["lang"]);
66 $this->tpl->parseCurrentBlock();
67 } else {
68 $this->tpl->setVariable("ML", "(" . $lng->txt("cont_master_lang") . ")");
69 }
70 $this->tpl->setVariable("LANG", $lng->txt("meta_l_" . $a_set["lang"]));
71 }
72}
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd)
fillRow(array $a_set)
Fill table row.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addMultiCommand(string $a_cmd, string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
ilLanguage $lng
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26