ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 @ilCtrl_Calls 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.

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 }
Base class for ILIAS Exception handling.
static _lookupContObjID(int $a_id)
get learning module id for lm object

References ilLMObject\_lookupContObjID(), and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ displayLocator()

ilLMEditorGUI::displayLocator ( )

Display locator.

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

218 : void
219 {
220 $this->tpl->setLocator();
221 }

◆ main_header()

ilLMEditorGUI::main_header ( )

output main header (title and locator)

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

195 : void
196 {
197 $this->tpl->loadStandardTemplate();
198
199 // content style
200 $this->content_style_gui->addCss(
201 $this->tpl,
202 $this->lm_obj->getRefId()
203 );
204
205 // syntax style
206 $this->tpl->setCurrentBlock("SyntaxStyle");
207 $this->tpl->setVariable(
208 "LOCATION_SYNTAX_STYLESHEET",
210 );
211 $this->tpl->parseCurrentBlock();
212 }

References ilObjStyleSheet\getSyntaxStylePath().

+ Here is the call graph for this function:

◆ showTree()

ilLMEditorGUI::showTree ( )

Show tree.

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

182 : void
183 {
185
186 $this->tool_context->current()->addAdditionalData(ilLMEditGSToolProvider::SHOW_TREE, true);
187
188 $exp = new ilLMEditorExplorerGUI($this, "showTree", $this->lm_obj);
189 $exp->handleCommand();
190 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl

References $tpl, and ilLMEditGSToolProvider\SHOW_TREE.

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: