ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLMEditShortTitlesGUI Class Reference
+ Collaboration diagram for ilLMEditShortTitlesGUI:

Public Member Functions

 executeCommand ()
 
 listShortTitles ()
 
 save ()
 

Protected Attributes

string $lang
 
ilCtrl $ctrl
 
ilObjLearningModule $lm
 
ilObjLearningModuleGUI $lm_gui
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
EditingGUIRequest $request
 

Detailed Description

Definition at line 21 of file class.ilLMEditShortTitlesGUI.php.

Member Function Documentation

◆ executeCommand()

ilLMEditShortTitlesGUI::executeCommand ( )

Definition at line 57 of file class.ilLMEditShortTitlesGUI.php.

References ILIAS\Repository\ctrl().

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  }
+ Here is the call graph for this function:

◆ listShortTitles()

ilLMEditShortTitlesGUI::listShortTitles ( )

Definition at line 70 of file class.ilLMEditShortTitlesGUI.php.

References $lm_gui, ilObjContentObjectGUI\getMultiLangHeader(), and ILIAS\Repository\lng().

70  : void
71  {
72  $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_short_title_info"));
73  $ml_head = ilObjContentObjectGUI::getMultiLangHeader($this->lm->getId(), $this->lm_gui, "short_titles");
74  $tab = new ilLMEditShortTitlesTableGUI($this, "listShortTitles", $this->lm, $this->lang);
75  $this->tpl->setContent($ml_head . $tab->getHTML());
76  }
static getMultiLangHeader(int $a_lm_id, object $a_gui_class, string $a_mode="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ save()

ilLMEditShortTitlesGUI::save ( )

Definition at line 78 of file class.ilLMEditShortTitlesGUI.php.

References $id, ilLMObject\_lookupContObjID(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilUtil\stripSlashes(), and ilLMObject\writeShortTitle().

78  : void
79  {
80  $short_titles = $this->request->getShortTitles();
81 
82  foreach ($short_titles as $id => $title) {
83  if (ilLMObject::_lookupContObjID($id) == $this->lm->getId()) {
85  }
86  }
87  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
88  $this->ctrl->redirect($this, "listShortTitles");
89  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
static writeShortTitle(int $a_id, string $a_short_title, string $a_lang="-")
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static _lookupContObjID(int $a_id)
get learning module id for lm object
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilLMEditShortTitlesGUI::$ctrl
protected

Definition at line 24 of file class.ilLMEditShortTitlesGUI.php.

◆ $lang

string ilLMEditShortTitlesGUI::$lang
protected

Definition at line 23 of file class.ilLMEditShortTitlesGUI.php.

◆ $lm

ilObjLearningModule ilLMEditShortTitlesGUI::$lm
protected

Definition at line 25 of file class.ilLMEditShortTitlesGUI.php.

◆ $lm_gui

ilObjLearningModuleGUI ilLMEditShortTitlesGUI::$lm_gui
protected

Definition at line 26 of file class.ilLMEditShortTitlesGUI.php.

Referenced by listShortTitles().

◆ $lng

ilLanguage ilLMEditShortTitlesGUI::$lng
protected

Definition at line 28 of file class.ilLMEditShortTitlesGUI.php.

◆ $request

EditingGUIRequest ilLMEditShortTitlesGUI::$request
protected

Definition at line 29 of file class.ilLMEditShortTitlesGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilLMEditShortTitlesGUI::$tpl
protected

Definition at line 27 of file class.ilLMEditShortTitlesGUI.php.


The documentation for this class was generated from the following file: