ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLMEditorGUI Class Reference

GUI class for learning module editor. More...

+ Inheritance diagram for ilLMEditorGUI:
+ Collaboration diagram for ilLMEditorGUI:

Public Member Functions

 showTree ()
 Show tree. More...
 
 main_header ()
 output main header (title and locator) More...
 
 displayLocator ()
 Display locator. More...
 

Protected Member Functions

 checkRequestParameters ()
 Check request parameters. More...
 

Protected Attributes

ILIAS GlobalScreen ScreenContext ContextServices $tool_context
 
ilCtrl $ctrl
 
ilRbacSystem $rbacsystem
 
ilNavigationHistory $nav_history
 
ilHelpGUI $help
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilObjectDefinition $objDefinition
 
int $ref_id
 
ilObjLearningModule $lm_obj
 
ilLMTree $tree
 
int $obj_id
 
int $requested_active_node = 0
 
bool $to_page = false
 
EditingGUIRequest $request
 
ILIAS Style Content GUIService $content_style_gui
 

Detailed Description

GUI class for learning module editor.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de ilLMEditorGUI: ilObjLearningModuleGUI

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

Member Function Documentation

◆ checkRequestParameters()

ilLMEditorGUI::checkRequestParameters ( )
protected

Check request parameters.

Exceptions
ilCtrlException
ilException

Definition at line 110 of file class.ilLMEditorGUI.php.

References $DIC, ilLMObject\_lookupContObjID(), ILIAS\Repository\ctrl(), displayLocator(), main_header(), and showTree().

110  : void
111  {
112  $forwards_to_role = $this->ctrl->checkCurrentPathForClass("ilobjrolegui");
113 
114  if (!$forwards_to_role && $this->obj_id > 0 && ilLMObject::_lookupContObjID($this->obj_id) != $this->lm_obj->getId()) {
115  throw new ilException("Object ID does not match learning module.");
116  }
117  if ($this->requested_active_node > 0 && ilLMObject::_lookupContObjID($this->requested_active_node) != $this->lm_obj->getId()) {
118  throw new ilException("Active node does not match learning module.");
119  }
120  }
static _lookupContObjID(int $a_id)
get learning module id for lm object
+ Here is the call graph for this function:

◆ displayLocator()

ilLMEditorGUI::displayLocator ( )

Display locator.

Definition at line 220 of file class.ilLMEditorGUI.php.

Referenced by checkRequestParameters().

220  : void
221  {
222  $this->tpl->setLocator();
223  }
+ Here is the caller graph for this function:

◆ main_header()

ilLMEditorGUI::main_header ( )

output main header (title and locator)

Definition at line 197 of file class.ilLMEditorGUI.php.

References ilObjStyleSheet\getSyntaxStylePath().

Referenced by checkRequestParameters().

197  : void
198  {
199  $this->tpl->loadStandardTemplate();
200 
201  // content style
202  $this->content_style_gui->addCss(
203  $this->tpl,
204  $this->lm_obj->getRefId()
205  );
206 
207  // syntax style
208  $this->tpl->setCurrentBlock("SyntaxStyle");
209  $this->tpl->setVariable(
210  "LOCATION_SYNTAX_STYLESHEET",
212  );
213  $this->tpl->parseCurrentBlock();
214  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showTree()

ilLMEditorGUI::showTree ( )

Show tree.

Definition at line 182 of file class.ilLMEditorGUI.php.

References $tpl, and ilLMEditGSToolProvider\SHOW_TREE.

Referenced by checkRequestParameters().

182  : void
183  {
184  $tpl = $this->tpl;
185 
186  $this->tool_context->current()->addAdditionalData(ilLMEditGSToolProvider::SHOW_TREE, true);
187 
188  $exp = new ilLMEditorExplorerGUI($this, "showTree", $this->lm_obj);
189  if (!$exp->handleCommand()) {
190 // $tpl->setLeftNavContent($exp->getHTML());
191  }
192  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
+ Here is the caller graph for this function:

Field Documentation

◆ $content_style_gui

ILIAS Style Content GUIService ilLMEditorGUI::$content_style_gui
protected

Definition at line 43 of file class.ilLMEditorGUI.php.

◆ $ctrl

ilCtrl ilLMEditorGUI::$ctrl
protected

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

◆ $help

ilHelpGUI ilLMEditorGUI::$help
protected

Definition at line 32 of file class.ilLMEditorGUI.php.

◆ $lm_obj

ilObjLearningModule ilLMEditorGUI::$lm_obj
protected

Definition at line 37 of file class.ilLMEditorGUI.php.

◆ $lng

ilLanguage ilLMEditorGUI::$lng
protected

Definition at line 34 of file class.ilLMEditorGUI.php.

◆ $nav_history

ilNavigationHistory ilLMEditorGUI::$nav_history
protected

Definition at line 31 of file class.ilLMEditorGUI.php.

◆ $obj_id

int ilLMEditorGUI::$obj_id
protected

Definition at line 39 of file class.ilLMEditorGUI.php.

◆ $objDefinition

ilObjectDefinition ilLMEditorGUI::$objDefinition
protected

Definition at line 35 of file class.ilLMEditorGUI.php.

◆ $rbacsystem

ilRbacSystem ilLMEditorGUI::$rbacsystem
protected

Definition at line 30 of file class.ilLMEditorGUI.php.

◆ $ref_id

int ilLMEditorGUI::$ref_id
protected

Definition at line 36 of file class.ilLMEditorGUI.php.

◆ $request

EditingGUIRequest ilLMEditorGUI::$request
protected

Definition at line 42 of file class.ilLMEditorGUI.php.

◆ $requested_active_node

int ilLMEditorGUI::$requested_active_node = 0
protected

Definition at line 40 of file class.ilLMEditorGUI.php.

◆ $to_page

bool ilLMEditorGUI::$to_page = false
protected

Definition at line 41 of file class.ilLMEditorGUI.php.

◆ $tool_context

ILIAS GlobalScreen ScreenContext ContextServices ilLMEditorGUI::$tool_context
protected

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

◆ $tpl

ilGlobalTemplateInterface ilLMEditorGUI::$tpl
protected

Definition at line 33 of file class.ilLMEditorGUI.php.

Referenced by showTree().

◆ $tree

ilLMTree ilLMEditorGUI::$tree
protected

Definition at line 38 of file class.ilLMEditorGUI.php.


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