ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilHTLMEditorGUI.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2005 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24
37{
43 var $ilias;
44 var $tpl;
45 var $lng;
48
53 function ilHTLMEditorGUI()
54 {
56 $rbacsystem, $ilLocator;
57
58 $lng->loadLanguageModule("content");
59
60 // check write permission
61 if (!$rbacsystem->checkAccess("write", $_GET["ref_id"]))
62 {
63 $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
64 }
65
66 $this->ctrl =& $ilCtrl;
67
68 //$this->ctrl->saveParameter($this, array("ref_id", "obj_id"));
69 $this->ctrl->saveParameter($this, array("ref_id"));
70
71 // initiate variables
72 $this->tpl = $tpl;
73 $this->lng = $lng;
74 $this->objDefinition = $objDefinition;
75 $this->ref_id = $_GET["ref_id"];
76
77 }
78
82 function &executeCommand()
83 {
84 global $tpl, $ilCtrl,$ilAccess, $ilNavigationHistory;
85
86 $next_class = $this->ctrl->getNextClass($this);
87 $cmd = $this->ctrl->getCmd("");
88
89 // add entry to navigation history
90 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
91 {
92 $ilNavigationHistory->addItem($_GET["ref_id"],
93 $ilCtrl->getLinkTargetByClass("ilrepositorygui", "infoScreen"), "lm");
94 }
95
96 switch($next_class)
97 {
98 case "ilobjfilebasedlmgui":
99 require_once ("./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
100 $fblm_gui =& new ilObjFileBasedLMGUI("", $_GET["ref_id"],true, false);
101 $ilCtrl->forwardCommand($fblm_gui);
102 $tpl->show();
103 break;
104
105 default:
106 $this->ctrl->setCmdClass("ilobjfilebasedlmgui");
107 $this->ctrl->setCmd("");
108 return $this->executeCommand();
109 break;
110 }
111 }
112
113}
114?>
$_GET["client_id"]
GUI class for learning module editor.
ilHTLMEditorGUI()
Constructor @access public.
& executeCommand()
execute command
User Interface class for file based learning modules (HTML)
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35