◆ executeCommand()
ilLMEditShortTitlesGUI::executeCommand |
( |
| ) |
|
Definition at line 57 of file class.ilLMEditShortTitlesGUI.php.
57 : void
58 {
59 $next_class = $this->
ctrl->getNextClass($this);
60 $cmd = $this->
ctrl->getCmd(
"listShortTitles");
61
62 switch ($next_class) {
63 default:
64 if (in_array($cmd, array("listShortTitles", "save"))) {
65 $this->$cmd();
66 }
67 }
68 }
References ILIAS\Repository\ctrl().
◆ listShortTitles()
ilLMEditShortTitlesGUI::listShortTitles |
( |
| ) |
|
◆ save()
ilLMEditShortTitlesGUI::save |
( |
| ) |
|
Definition at line 78 of file class.ilLMEditShortTitlesGUI.php.
78 : void
79 {
80 $short_titles = $this->request->getShortTitles();
81
82 foreach ($short_titles as
$id => $title) {
85 }
86 }
87 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
88 $this->
ctrl->redirect($this,
"listShortTitles");
89 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static writeShortTitle(int $a_id, string $a_short_title, string $a_lang="-")
static _lookupContObjID(int $a_id)
get learning module id for lm object
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
References $id, ilLMObject\_lookupContObjID(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilUtil\stripSlashes(), and ilLMObject\writeShortTitle().
◆ $ctrl
ilCtrl ilLMEditShortTitlesGUI::$ctrl |
|
protected |
◆ $lang
string ilLMEditShortTitlesGUI::$lang |
|
protected |
◆ $lm
◆ $lm_gui
◆ $lng
◆ $request
◆ $tpl
The documentation for this class was generated from the following file: