3 declare(strict_types=1);
    40         bool $incl_desc = 
true,
    41         string $base_cmd = 
"HeaderTitle",
    42         string $master_lang = 
"",
    43         bool $fallback_mode = 
false,
    44         string $fallback_lang = 
""    48         $this->
ctrl = $DIC->ctrl();
    49         $this->
lng = $DIC->language();
    50         $this->
access = $DIC->access();
    51         $ilCtrl = $DIC->ctrl();
    73         $this->
setRowTemplate(
"tpl.obj_translation2_row.html", 
"Services/Object");
    82         $this->
addMultiCommand(
"confirmDelete" . $this->base_cmd . 
"s", $this->
lng->txt(
"remove"));
    83         if ($this->fallback_mode) {
    91     protected function fillRow(array $set): void
    95         if (!$set[
"default"] && $set[
"lang"] != $this->master_lang) {
    96             $this->tpl->setCurrentBlock(
"cb");
    97             $this->tpl->setVariable(
"CB_NR", $this->nr);
    98             $this->tpl->parseCurrentBlock();
   101         if ($this->master_lang == 
"") {
   102             $this->tpl->setCurrentBlock(
"rb");
   103             $this->tpl->setVariable(
"RB_NR", $this->nr);
   104             if ($set[
"default"]) {
   105                 $this->tpl->setVariable(
"DEF_CHECKED", 
"checked=\"checked\"");
   107             $this->tpl->parseCurrentBlock();
   108         } elseif ($set[
"lang"] == $this->master_lang) {
   109             $this->tpl->setVariable(
"MASTER_LANG", $this->
lng->txt(
"obj_master_lang"));
   111         if ($this->master_lang != 
"" && $set[
"lang"] == $this->fallback_lang) {
   112             $this->tpl->setVariable(
"FALLBACK_LANG", $this->
lng->txt(
"obj_fallback_lang"));
   115         if ($this->incl_desc) {
   116             $this->tpl->setCurrentBlock(
"desc_row");
   118             $this->tpl->setVariable(
"DNR", $this->nr);
   119             $this->tpl->parseCurrentBlock();
   122         $this->tpl->setVariable(
"NR", $this->nr);
   126         $this->tpl->setVariable(
   130                 "lang[" . $this->nr . 
"]",
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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="")
 
__construct(?object $parent_obj, string $parent_cmd, bool $incl_desc=true, string $base_cmd="HeaderTitle", string $master_lang="", bool $fallback_mode=false, string $fallback_lang="")
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
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)