28 protected \ILIAS\GlobalScreen\ScreenContext\ContextServices
$tool_context;
49 $this->rbacsystem =
$DIC->rbac()->system();
50 $this->
help = $DIC->help();
54 $ilCtrl =
$DIC->ctrl();
56 $ilNavigationHistory =
$DIC[
"ilNavigationHistory"];
68 $this->ref_id = $this->request->getRefId();
69 $this->obj_id = $this->request->getObjId();
71 $this->
ctrl = $ilCtrl;
73 $cmd_class = $this->
ctrl->getCmdClass($this);
74 $lp_settings_access = (in_array($cmd_class, [
75 strtolower(ilLPListOfSettingsGUI::class),
76 strtolower(ilLPListOfObjectsGUI::class),
82 !$lp_settings_access) {
87 $this->tool_context =
$DIC->globalScreen()->tool()->context();
89 $this->
ctrl->saveParameter($this, array(
"ref_id",
"transl"));
99 $this->tree =
new ilLMTree($this->lm_obj->getId());
101 $ilNavigationHistory->addItem(
103 "ilias.php?baseClass=ilLMEditorGUI&ref_id=" . $this->ref_id,
107 $this->requested_active_node = $this->request->getActiveNode();
108 $this->to_page = $this->request->getToPage();
111 $cs =
$DIC->contentStyle();
112 $this->content_style_gui = $cs->gui();
122 $forwards_to_role = $this->
ctrl->checkCurrentPathForClass(
"ilobjrolegui");
125 throw new ilException(
"Object ID does not match learning module.");
128 throw new ilException(
"Active node does not match learning module.");
137 public function executeCommand(): void
141 $this->tool_context->claim()->repository();
146 $loc =
$DIC[
"ilLocator"];
147 $loc->addRepositoryItems($this->ref_id);
149 if ($this->to_page) {
150 $this->
ctrl->setParameterByClass(
"illmpageobjectgui",
"obj_id", $this->obj_id);
151 $this->
ctrl->redirectByClass(array(
"ilobjlearningmodulegui",
"illmpageobjectgui"),
"edit");
156 $next_class = $this->
ctrl->getNextClass($this);
159 $show_footer = ($cmd !==
"explorer");
161 switch ($next_class) {
162 case "ilobjlearningmodulegui":
166 $ret = $this->
ctrl->forwardCommand($lm_gui);
167 if (strcmp($cmd,
"explorer") != 0) {
180 $this->tpl->printToStdout();
184 $this->
ctrl->redirectByClass(array(
"ilobjlearningmodulegui"),
"");
199 $exp->handleCommand();
207 $this->tpl->loadStandardTemplate();
210 $this->content_style_gui->addCss(
212 $this->lm_obj->getRefId()
216 $this->tpl->setCurrentBlock(
"SyntaxStyle");
217 $this->tpl->setVariable(
218 "LOCATION_SYNTAX_STYLESHEET",
221 $this->tpl->parseCurrentBlock();
230 $this->tpl->setLocator();
Class ilCtrl provides processing control methods.
Base class for ILIAS Exception handling.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
GUI class for learning module editor.
ILIAS Style Content GUIService $content_style_gui
ilObjLearningModule $lm_obj
ILIAS GlobalScreen ScreenContext ContextServices $tool_context
int $requested_active_node
checkRequestParameters()
Check request parameters.
ilGlobalTemplateInterface $tpl
EditingGUIRequest $request
ilNavigationHistory $nav_history
main_header()
output main header (title and locator)
displayLocator()
Display locator.
ilObjectDefinition $objDefinition
static _lookupContObjID(int $a_id)
get learning module id for lm object
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Last visited history for repository items.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getSyntaxStylePath()
parses the objects.xml it handles the xml-description of all ilias objects
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc