4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
24 parent::__construct($a_parent_obj, $a_parent_cmd);
25 $this->
setData($lng->getInstallableLanguages());
29 $this->
addColumn($this->lng->txt(
"language"));
30 $this->
addColumn($this->lng->txt(
"installed"));
31 $this->
addColumn($this->lng->txt(
"include_local"));
32 $this->
addColumn($this->lng->txt(
"default"));
41 $this->client = $a_client;
42 $this->installed_langs = $lng->getInstalledLanguages();
43 $this->installed_local_langs = $lng->getInstalledLocalLanguages();
44 $this->local_langs = $lng->getLocalLanguages();
45 $this->default_lang = $this->client->getDefaultLanguage();
57 $this->tpl->setVariable(
"LANG_KEY", $lang_key);
58 $this->tpl->setVariable(
"TXT_LANG", $this->lng->txt(
"lang_" . $lang_key));
60 if (in_array($lang_key, $this->installed_langs)) {
61 $this->tpl->setVariable(
"CHECKED", (
"checked=\"checked\""));
64 if (!in_array($lang_key, $this->local_langs)) {
65 $this->tpl->setVariable(
"LOCAL", (
"disabled=\"disabled\""));
66 } elseif (in_array($lang_key, $this->installed_local_langs)) {
67 $this->tpl->setVariable(
"LOCAL", (
"checked=\"checked\""));
70 if ($lang_key == $this->default_lang) {
71 $this->tpl->setVariable(
"DEFAULT", (
"checked=\"checked\""));
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
fillRow($lang_key)
Fill table row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
__construct($a_client)
Constructor.
setLimit($a_limit=0, $a_default_limit=0)