49 string $requested_transl =
"",
50 string $requested_focus_id =
"",
51 string $requested_focus_return =
"",
52 string $requested_search_string =
"",
53 bool $offline =
false,
54 bool $export_all_languages =
false,
55 string $export_format =
"",
73 protected function init(): void
77 $this->concrete_lang =
"-";
78 if ($this->ot->getContentTranslationActivated()) {
79 $langs = $this->ot->getLanguages();
80 if (isset($langs[$this->requested_transl]) || $this->requested_transl == $this->ot->getBaseLanguage()) {
83 $this->lang = $this->
user->getCurrentLanguage();
86 if ($this->lang == $this->ot->getBaseLanguage()) {
92 if ($this->requested_focus_id > 0 && $this->lm_tree->isInTree($this->requested_focus_id)) {
148 if ($this->lang !=
"" && $this->lang !=
"-") {
152 if (isset(
$data[$this->lang])) {
155 if ($ltitle !==
"") {
159 if (isset(
$data[$fb])) {
160 $ltitle =
$data[$fb]->getTitle();
162 if ($ltitle !==
"") {
166 return $this->lm->getTitle();
175 $childs = $this->lm_tree->getChilds($this->lm_tree->getRootId());
176 if (count($childs) == 0) {
179 if (count($childs) > 1) {
182 if ($this->lm->getTOCMode() !=
"pages") {
185 $current_chapter = current($childs);
186 $childs = $this->lm_tree->getChilds($current_chapter[
"child"]);
187 if (count($childs) > 1) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Contains info on offline mode, focus, translation, etc.
bool $export_all_languages
Class handles translation mode for an object.
__construct(ilObjUser $user, ilObjLearningModule $lm, ilLMTree $lm_tree, Translations $ot, string $requested_transl="", string $requested_focus_id="", string $requested_focus_return="", string $requested_search_string="", bool $offline=false, bool $export_all_languages=false, string $export_format="", bool $embed_mode=false)
isTocNecessary()
Is TOC necessary, see #30027 Check if at least two entries will be shown.
string $requested_focus_return
string $requested_focus_id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $requested_search_string
getConcreteLang()
Only difference to getLang(): if current language is the master lang the language key will be returne...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...