19 declare(strict_types=1);
    39         readonly 
protected bool $incl_desc = 
true,
    40         readonly 
protected string $master_lang = 
"",
    41         readonly 
protected bool $fallback_mode = 
false,
    42         readonly 
protected string $fallback_lang = 
""    46         $this->
access = $DIC->access();
    47         $this->lom_services = $DIC->learningObjectMetadata();
    63         $this->
setRowTemplate(
"tpl.obj_translation2_row.html", 
"components/ILIAS/ILIASObject");
    72         $this->
addMultiCommand(
"confirmDelete" . self::BASE_CMD . 
"s", $this->
lng->txt(
"remove"));
    73         if ($this->fallback_mode) {
    81     protected function fillRow(array $set): void
    85         if (!$set[
"default"] && $set[
"lang"] != $this->master_lang) {
    86             $this->tpl->setCurrentBlock(
"cb");
    87             $this->tpl->setVariable(
"CB_NR", $this->nr);
    88             $this->tpl->parseCurrentBlock();
    91         if ($this->master_lang == 
"") {
    92             $this->tpl->setCurrentBlock(
"rb");
    93             $this->tpl->setVariable(
"RB_NR", $this->nr);
    94             if ($set[
"default"]) {
    95                 $this->tpl->setVariable(
"DEF_CHECKED", 
"checked=\"checked\"");
    97             $this->tpl->parseCurrentBlock();
    98         } elseif ($set[
"lang"] == $this->master_lang) {
    99             $this->tpl->setVariable(
"MASTER_LANG", $this->
lng->txt(
"obj_master_lang"));
   101         if ($this->master_lang != 
"" && $set[
"lang"] == $this->fallback_lang) {
   102             $this->tpl->setVariable(
"FALLBACK_LANG", $this->
lng->txt(
"obj_fallback_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         foreach ($this->lom_services->dataHelper()->getAllLanguages() as $language) {
   117             $languages[$language->value()] = $language->presentableLabel();
   119         $this->tpl->setVariable(
   123                 "lang[" . $this->nr . 
"]",
 
LOMServices $lom_services
 
TableGUI class for title/description translations. 
 
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. 
 
__construct(?object $parent_obj, string $parent_cmd, readonly protected bool $incl_desc=true, readonly protected string $master_lang="", readonly protected bool $fallback_mode=false, readonly protected string $fallback_lang="")
 
__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)