◆ __construct()
Learning module.
- Parameters
-
Definition at line 37 of file class.ilLMEditShortTitlesGUI.php.
38 {
40
41 $this->ctrl =
$DIC->ctrl();
42 $this->lm = $a_lm_gui->object;
43 $this->lm_gui = $a_lm_gui;
44 $this->tpl =
$DIC[
"tpl"];
45 $this->lng =
$DIC->language();
46
47 $this->lang = (
$_GET[
"transl"] ==
"")
48 ? "-"
50 }
References $_GET, and $DIC.
◆ executeCommand()
ilLMEditShortTitlesGUI::executeCommand |
( |
| ) |
|
Execute command.
Definition at line 55 of file class.ilLMEditShortTitlesGUI.php.
56 {
57 $next_class = $this->ctrl->getNextClass($this);
58 $cmd = $this->ctrl->getCmd("listShortTitles");
59
60 switch ($next_class) {
61 default:
62 if (in_array($cmd, array("listShortTitles", "save"))) {
63 $this->$cmd();
64 }
65 }
66 }
◆ listShortTitles()
ilLMEditShortTitlesGUI::listShortTitles |
( |
| ) |
|
◆ save()
ilLMEditShortTitlesGUI::save |
( |
| ) |
|
Save short titles.
Definition at line 82 of file class.ilLMEditShortTitlesGUI.php.
83 {
84 if (is_array(
$_POST[
"short_title"])) {
85 foreach (
$_POST[
"short_title"] as $id => $title) {
88 }
89 }
90 }
91 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
92 $this->ctrl->redirect($this, "listShortTitles");
93 }
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static writeShortTitle($a_id, $a_short_title, $a_lang="-")
Write short title.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
References $_POST, ilLMObject\_lookupContObjID(), ilUtil\stripSlashes(), and ilLMObject\writeShortTitle().
◆ $ctrl
ilLMEditShortTitlesGUI::$ctrl |
|
protected |
◆ $lm
ilLMEditShortTitlesGUI::$lm |
|
protected |
◆ $lm_gui
ilLMEditShortTitlesGUI::$lm_gui |
|
protected |
◆ $lng
ilLMEditShortTitlesGUI::$lng |
|
protected |
◆ $tpl
ilLMEditShortTitlesGUI::$tpl |
|
protected |
The documentation for this class was generated from the following file: