85        $this->rbacsystem = 
$DIC->rbac()->system();
 
   86        $this->nav_history = 
$DIC[
"ilNavigationHistory"];
 
   87        $this->
error = $DIC[
"ilErr"];
 
   88        $this->
help = $DIC[
"ilHelp"];
 
   92        $ilCtrl = 
$DIC->ctrl();
 
   94        $ilNavigationHistory = 
$DIC[
"ilNavigationHistory"];
 
   97        $lng->loadLanguageModule(
"content");
 
   98        $lng->loadLanguageModule(
"lm");
 
  105        $this->ctrl = $ilCtrl;
 
  106        $this->tool_context = 
$DIC->globalScreen()->tool()->context();
 
  108        $this->ctrl->saveParameter($this, array(
"ref_id", 
"transl"));
 
  114        $this->ref_id = 
$_GET[
"ref_id"];
 
  115        $this->obj_id = 
$_GET[
"obj_id"];
 
  118        $this->tree = 
new ilTree($this->lm_obj->getId());
 
  119        $this->tree->setTableNames(
'lm_tree', 
'lm_data');
 
  120        $this->tree->setTreeTablePK(
"lm_id");
 
  123        $ilNavigationHistory->addItem(
 
  125            "ilias.php?baseClass=ilLMEditorGUI&ref_id=" . 
$_GET[
"ref_id"],
 
  139        $forwards_to_role = $this->ctrl->checkCurrentPathForClass(
"ilobjrolegui");
 
  142            throw new ilException(
"Object ID does not match learning module.");
 
  145            throw new ilException(
"Active node does not match learning module.");
 
  154    public function executeCommand()
 
  158        $this->tool_context->claim()->repository();
 
  161        $loc = 
$DIC[
"ilLocator"];
 
  162        $loc->addRepositoryItems((
int) 
$_GET[
"ref_id"]);
 
  164        if (
$_GET[
"to_page"] == 1) {
 
  165            $this->ctrl->setParameterByClass(
"illmpageobjectgui", 
"obj_id", 
$_GET[
"obj_id"]);
 
  166            $this->ctrl->redirectByClass(array(
"ilobjlearningmodulegui", 
"illmpageobjectgui"), 
"edit");
 
  171        $next_class = $this->ctrl->getNextClass($this);
 
  173        if ($next_class == 
"" && ($cmd != 
"explorer")
 
  174            && ($cmd != 
"showImageMap")) {
 
  175            $next_class = 
"ilobjlearningmodulegui";
 
  179        $show_footer = ($cmd == 
"explorer")
 
  183        switch ($next_class) {
 
  184            case "ilobjlearningmodulegui":
 
  188                $ret = $this->ctrl->forwardCommand($lm_gui);
 
  189                if (strcmp($cmd, 
"explorer") != 0) {
 
  205                $this->tpl->printToStdout();
 
  209                $ret = $this->$cmd();
 
  224        if (!$exp->handleCommand()) {
 
  234        $this->tpl->loadStandardTemplate();
 
  237        $this->tpl->setCurrentBlock(
"ContentStyle");
 
  238        $this->tpl->setVariable(
 
  239            "LOCATION_CONTENT_STYLESHEET",
 
  242        $this->tpl->parseCurrentBlock();
 
  245        $this->tpl->setCurrentBlock(
"SyntaxStyle");
 
  246        $this->tpl->setVariable(
 
  247            "LOCATION_SYNTAX_STYLESHEET",
 
  250        $this->tpl->parseCurrentBlock();
 
  259        $this->tpl->setLocator();
 
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
LM editor explorer GUI class.
GUI class for learning module editor.
checkRequestParameters()
Check request parameters.
main_header()
output main header (title and locator)
__construct()
Constructor @access public.
displayLocator()
Display locator.
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
Class ilLearningModuleGUI.
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...