19 declare(strict_types=1);
26 public function __construct(?
object $a_parent_obj,
string $a_parent_cmd =
"")
28 $this->
setId(
'login_copage_tbl');
31 $this->
lng->loadLanguageModule(
'meta');
41 $installed = $this->
lng->getInstalledLanguages();
45 foreach ($installed as $langkey) {
46 $tbl_data[$counter][
'key'] = $langkey;
49 $tbl_data[$counter][
'language'] = $this->
lng->txt(
'meta_l_' . $langkey);
61 protected function fillRow(array $a_set): void
63 $this->tpl->setVariable(
'LANGID', $a_set[
'key']);
64 $this->tpl->setVariable(
'LANGKEY_CHECKED', $a_set[
'status'] ?
'checked="checked' :
'');
65 $this->tpl->setVariable(
'TXT_LANGUAGE', $a_set[
'language']);
67 if ($this->
lng->getDefaultLanguage() === $a_set[
'key']) {
68 $this->tpl->setVariable(
'TXT_SYSTEM', $this->
lng->txt(
'system_language'));
70 if ($a_set[
'status']) {
72 $this->tpl->setVariable(
'STATUS_ALT', $this->
lng->txt(
'active'));
73 $this->tpl->setVariable(
'CHECKED_LANGKEY',
'checked="checked"');
76 $this->tpl->setVariable(
'STATUS_ALT', $this->
lng->txt(
'inactive'));
78 $this->tpl->setVariable(
'LINK_TXT', $this->
lng->txt(
'edit'));
80 $this->tpl->setVariable(
'LINK_NAME', $this->
ctrl->getLinkTargetByClass(
'illoginpagegui',
'edit'));
91 $this->
setRowTemplate(
'tpl.auth_login_page_editor_table_row.html',
'Services/Authentication');
92 $this->
setId(
'loginpageeditor');
96 $this->
addColumn($this->
lng->txt(
'language'),
'language',
'85%');
97 $this->
addColumn($this->
lng->txt(
'active'),
'status',
'5%');
106 $this->
enable(
'select_all');
fillRow(array $a_set)
Fill table row template.
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setFormName(string $a_name="")
__construct(?object $a_parent_obj, string $a_parent_cmd="")
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static lookupId(string $a_lang_key)
Lookup obj_id of language.
__construct(Container $dic, ilPlugin $plugin)
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)
disable(string $a_module_name)
static getInstance()
Get singelton instance.
addMultiCommand(string $a_cmd, string $a_text)