33 string $requested_transl
44 $this->
ctrl = $DIC->ctrl();
48 $this->lm_gui = $a_lm_gui;
49 $this->tpl = $DIC[
"tpl"];
50 $this->
lng = $DIC->language();
52 $this->lang = ($requested_transl ==
"")
59 $next_class = $this->
ctrl->getNextClass($this);
60 $cmd = $this->
ctrl->getCmd(
"listShortTitles");
62 switch ($next_class) {
64 if (in_array($cmd, array(
"listShortTitles",
"save"))) {
72 $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"cont_short_title_info"));
75 $this->tpl->setContent($ml_head . $tab->getHTML());
78 public function save(): void
80 $short_titles = $this->request->getShortTitles();
82 foreach ($short_titles as
$id => $title) {
87 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
88 $this->
ctrl->redirect($this,
"listShortTitles");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
EditingGUIRequest $request
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
ilObjLearningModuleGUI $lm_gui
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static writeShortTitle(int $a_id, string $a_short_title, string $a_lang="-")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getMultiLangHeader(int $a_lm_id, object $a_gui_class, string $a_mode="")
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
static _lookupContObjID(int $a_id)
get learning module id for lm object
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...