ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
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 120 of file class.ilLMEditorGUI.php.

120 : void
121 {
122 $forwards_to_role = $this->ctrl->checkCurrentPathForClass("ilobjrolegui");
123
124 if (!$forwards_to_role && $this->obj_id > 0 && ilLMObject::_lookupContObjID($this->obj_id) != $this->lm_obj->getId()) {
125 throw new ilException("Object ID does not match learning module.");
126 }
127 if ($this->requested_active_node > 0 && ilLMObject::_lookupContObjID($this->requested_active_node) != $this->lm_obj->getId()) {
128 throw new ilException("Active node does not match learning module.");
129 }
130 }
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 228 of file class.ilLMEditorGUI.php.

228 : void
229 {
230 $this->tpl->setLocator();
231 }

◆ main_header()

ilLMEditorGUI::main_header ( )

output main header (title and locator)

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

205 : void
206 {
207 $this->tpl->loadStandardTemplate();
208
209 // content style
210 $this->content_style_gui->addCss(
211 $this->tpl,
212 $this->lm_obj->getRefId()
213 );
214
215 // syntax style
216 $this->tpl->setCurrentBlock("SyntaxStyle");
217 $this->tpl->setVariable(
218 "LOCATION_SYNTAX_STYLESHEET",
220 );
221 $this->tpl->parseCurrentBlock();
222 }

References ilObjStyleSheet\getSyntaxStylePath().

+ Here is the call graph for this function:

◆ showTree()

ilLMEditorGUI::showTree ( )

Show tree.

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

192 : void
193 {
195
196 $this->tool_context->current()->addAdditionalData(ilLMEditGSToolProvider::SHOW_TREE, true);
197
198 $exp = new ilLMEditorExplorerGUI($this, "showTree", $this->lm_obj);
199 $exp->handleCommand();
200 }
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: