35 bool $a_incl_desc =
true,
36 string $a_base_cmd =
"HeaderTitle",
37 string $a_master_lang =
"" 41 $this->
ctrl = $DIC->ctrl();
42 $this->
lng = $DIC->language();
43 $this->
access = $DIC->access();
44 $ilCtrl = $DIC->ctrl();
47 $this->incl_desc = $a_incl_desc;
48 $this->base_cmd = $a_base_cmd;
49 $this->master_lang = $a_master_lang;
58 $this->
addColumn($this->
lng->txt(
"description"),
"",
"");
64 $this->
setRowTemplate(
"tpl.obj_translation2_row.html",
"Services/Object");
81 protected function fillRow(array $a_set): void
88 if (!$a_set[
"default"] && $a_set[
"lang"] != $this->master_lang) {
89 $this->tpl->setCurrentBlock(
"cb");
90 $this->tpl->setVariable(
"CB_NR", $this->nr);
91 $this->tpl->parseCurrentBlock();
94 if ($this->master_lang ===
"") {
95 $this->tpl->setCurrentBlock(
"rb");
96 $this->tpl->setVariable(
"RB_NR", $this->nr);
97 if ($a_set[
"default"]) {
98 $this->tpl->setVariable(
"DEF_CHECKED",
"checked=\"checked\"");
100 $this->tpl->parseCurrentBlock();
101 } elseif ($a_set[
"lang"] == $this->master_lang) {
102 $this->tpl->setVariable(
"MASTER_LANG",
$lng->
txt(
"obj_master_lang"));
105 if ($this->incl_desc) {
106 $this->tpl->setCurrentBlock(
"desc_row");
108 $this->tpl->setVariable(
"DNR", $this->nr);
109 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
"NR", $this->nr);
116 $this->tpl->setVariable(
120 "lang[" . $this->nr .
"]",
__construct(object $a_parent_obj, string $a_parent_cmd, bool $a_incl_desc=true, string $a_base_cmd="HeaderTitle", string $a_master_lang="")
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...
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
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)
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)