85 $this->rbacsystem = $DIC->rbac()->system();
86 $this->nav_history = $DIC[
"ilNavigationHistory"];
87 $this->error = $DIC[
"ilErr"];
88 $this->help = $DIC[
"ilHelp"];
90 $lng = $DIC->language();
94 $ilNavigationHistory = $DIC[
"ilNavigationHistory"];
97 $lng->loadLanguageModule(
"content");
98 $lng->loadLanguageModule(
"lm");
107 $this->ctrl->saveParameter($this, array(
"ref_id",
"transl"));
113 $this->ref_id =
$_GET[
"ref_id"];
114 $this->obj_id =
$_GET[
"obj_id"];
117 $this->tree =
new ilTree($this->lm_obj->getId());
119 $this->tree->setTreeTablePK(
"lm_id");
122 $ilNavigationHistory->addItem(
124 "ilias.php?baseClass=ilLMEditorGUI&ref_id=" .
$_GET[
"ref_id"],
138 $forwards_to_role = $this->ctrl->checkCurrentPathForClass(
"ilobjrolegui");
141 throw new ilException(
"Object ID does not match learning module.");
144 throw new ilException(
"Active node does not match learning module.");
153 public function executeCommand()
158 $loc = $DIC[
"ilLocator"];
159 $loc->addRepositoryItems((
int)
$_GET[
"ref_id"]);
161 if ($_GET[
"to_page"] == 1) {
162 $this->ctrl->setParameterByClass(
"illmpageobjectgui",
"obj_id", $_GET[
"obj_id"]);
163 $this->ctrl->redirectByClass(array(
"ilobjlearningmodulegui",
"illmpageobjectgui"),
"edit");
168 $next_class = $this->ctrl->getNextClass($this);
170 if ($next_class ==
"" && ($cmd !=
"explorer")
171 && ($cmd !=
"showImageMap")) {
172 $next_class =
"ilobjlearningmodulegui";
176 $show_footer = ($cmd ==
"explorer")
180 switch ($next_class) {
181 case "ilobjlearningmodulegui":
182 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
183 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModuleGUI.php");
187 $ret = $this->ctrl->forwardCommand($lm_gui);
188 if (strcmp($cmd,
"explorer") != 0) {
197 $output = $this->tpl->get(
"DEFAULT",
true,
true, $show_footer,
true);
200 header(
'Content-type: text/html; charset=UTF-8');
205 $ret = $this->$cmd();
217 include_once(
"./Modules/LearningModule/classes/class.ilLMEditorExplorerGUI.php");
219 if (!$exp->handleCommand()) {
220 $tpl->setLeftNavContent($exp->getHTML());
229 $this->tpl->getStandardTemplate();
232 $this->tpl->setCurrentBlock(
"ContentStyle");
233 $this->tpl->setVariable(
234 "LOCATION_CONTENT_STYLESHEET",
237 $this->tpl->parseCurrentBlock();
240 $this->tpl->setCurrentBlock(
"SyntaxStyle");
241 $this->tpl->setVariable(
242 "LOCATION_SYNTAX_STYLESHEET",
245 $this->tpl->parseCurrentBlock();
254 $this->tpl->setLocator();
__construct()
Constructor public.
checkRequestParameters()
Check request parameters.
GUI class for learning module editor.
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
LM editor explorer GUI class.
Class ilLearningModuleGUI.
main_header()
output main header (title and locator)
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
displayLocator()
Display locator.
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true)
get content style path
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id