38         bool $a_incl_desc = 
true,
    39         string $a_base_cmd = 
"HeaderTitle",
    40         string $a_master_lang = 
""    44         $this->
ctrl = $DIC->ctrl();
    45         $this->
lng = $DIC->language();
    46         $this->
access = $DIC->access();
    47         $ilCtrl = $DIC->ctrl();
    48         $this->lom_services = $DIC->learningObjectMetadata();
    51         $this->incl_desc = $a_incl_desc;
    52         $this->base_cmd = $a_base_cmd;
    53         $this->master_lang = $a_master_lang;
    62             $this->
addColumn($this->
lng->txt(
"description"), 
"", 
"");
    68         $this->
setRowTemplate(
"tpl.obj_translation2_row.html", 
"components/ILIAS/ILIASObject");
    85     protected function fillRow(array $a_set): void
    92         if (!$a_set[
"default"] && $a_set[
"lang"] != $this->master_lang) {
    93             $this->tpl->setCurrentBlock(
"cb");
    94             $this->tpl->setVariable(
"CB_NR", $this->nr);
    95             $this->tpl->parseCurrentBlock();
    98         if ($this->master_lang === 
"") {
    99             $this->tpl->setCurrentBlock(
"rb");
   100             $this->tpl->setVariable(
"RB_NR", $this->nr);
   101             if ($a_set[
"default"]) {
   102                 $this->tpl->setVariable(
"DEF_CHECKED", 
"checked=\"checked\"");
   104             $this->tpl->parseCurrentBlock();
   105         } elseif ($a_set[
"lang"] == $this->master_lang) {
   106             $this->tpl->setVariable(
"MASTER_LANG", 
$lng->
txt(
"obj_master_lang"));
   109         if ($this->incl_desc) {
   110             $this->tpl->setCurrentBlock(
"desc_row");
   112             $this->tpl->setVariable(
"DNR", $this->nr);
   113             $this->tpl->parseCurrentBlock();
   116         $this->tpl->setVariable(
"NR", $this->nr);
   120         foreach ($this->lom_services->dataHelper()->getAllLanguages() as $language) {
   121             $languages[$language->value()] = $language->presentableLabel();
   123         $this->tpl->setVariable(
   127                 "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)
 
LOMServices $lom_services
 
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)