Public Member Functions | Data Fields

ilSAHSEditGUI Class Reference
[Modules/ScormAicc]

Class ilSAHSPresentationGUI. More...

Public Member Functions

 ilSAHSEditGUI ()
executeCommand ()
 execute command

Data Fields

 $ilias
 $tpl
 $lng

Detailed Description

Class ilSAHSPresentationGUI.

GUI class for scorm learning module presentation

Author:
Alex Killing <alex.killing@gmx.de>
Version:
Id:
class.ilSAHSPresentationGUI.php 11714 2006-07-30 17:15:55Z akill

ilSAHSEditGUI: ilObjSCORMLearningModuleGUI, ilObjAICCLearningModuleGUI, ilObjHACPLearningModuleGUI ilSAHSEditGUI: ilObjSCORM2004LearningModuleGUI

Definition at line 38 of file class.ilSAHSEditGUI.php.


Member Function Documentation

& ilSAHSEditGUI::executeCommand (  ) 

execute command

Definition at line 59 of file class.ilSAHSEditGUI.php.

References $_GET, $cmd, $ilias, $lng, $ret, ilObject::_lookupObjectId(), and ilObjSAHSLearningModule::_lookupSubType().

        {
                global $lng, $ilAccess, $ilNavigationHistory;

                include_once "./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";

                $lng->loadLanguageModule("content");

                // permission
                if (!$ilAccess->checkAccess("write", "", $_GET["ref_id"]))
                {
                        $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
                }
                
                // add entry to navigation history
                $ilNavigationHistory->addItem($_GET["ref_id"],
                        "ilias.php?baseClass=ilSAHSEditGUI&ref_id=".$_GET["ref_id"], "lm");

                $next_class = $this->ctrl->getNextClass($this);
                $cmd = $this->ctrl->getCmd();

                $obj_id = ilObject::_lookupObjectId($_GET['ref_id']);
                $type = ilObjSAHSLearningModule::_lookupSubType($obj_id);

                switch($type)
                {
                        
                        case "scorm2004":
                                include_once("./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php");
                                $this->slm_gui = new ilObjSCORM2004LearningModuleGUI("", $_GET["ref_id"],true,false);
                                break;
                                
                        case "scorm":
                                include_once("./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
                                $this->slm_gui = new ilObjSCORMLearningModuleGUI("", $_GET["ref_id"],true,false);
                                break;

                        case "aicc":
                                include_once("./Modules/ScormAicc/classes/class.ilObjAICCLearningModuleGUI.php");
                                $this->slm_gui = new ilObjAICCLearningModuleGUI("", $_GET["ref_id"],true,false);
                                break;
                                
                        case "hacp":
                                include_once("./Modules/ScormAicc/classes/class.ilObjHACPLearningModuleGUI.php");
                                $this->slm_gui = new ilObjHACPLearningModuleGUI("", $_GET["ref_id"],true,false);
                                break;
                }

                if ($next_class == "")
                {
                        switch($type)
                        {
                                
                                case "scorm2004":
                                        $this->ctrl->setCmdClass("ilobjscorm2004learningmodulegui");
                                        break;
                                        
                                case "scorm":
                                        $this->ctrl->setCmdClass("ilobjscormlearningmodulegui");
                                        break;
        
                                case "aicc":
                                        $this->ctrl->setCmdClass("ilobjaicclearningmodulegui");
                                        break;
                                        
                                case "hacp":
                                        $this->ctrl->setCmdClass("ilobjhacplearningmodulegui");
                                        break;
                        }
                        $next_class = $this->ctrl->getNextClass($this);
                }

                switch($next_class)
                {
                        case "ilobjscormlearningmodulegui":
                        case "ilobjscorm2004learningmodulegui":
                                $ret =& $this->ctrl->forwardCommand($this->slm_gui);
                                break;

                        case "ilobjaicclearningmodulegui":
                                $ret =& $this->ctrl->forwardCommand($this->slm_gui);
                                break;

                        case "ilobjhacplearningmodulegui":
                                $ret =& $this->ctrl->forwardCommand($this->slm_gui);
                                break;

                        default:
                                die ("ilSAHSEdit: Class $next_class not found.");;
                }
                
                $this->tpl->show();
        }

Here is the call graph for this function:

ilSAHSEditGUI::ilSAHSEditGUI (  ) 

Definition at line 44 of file class.ilSAHSEditGUI.php.

References $ilCtrl, $ilias, $lng, and $tpl.

        {
                global $ilias, $tpl, $lng, $ilCtrl;

                $this->ilias =& $ilias;
                $this->tpl =& $tpl;
                $this->lng =& $lng;
                $this->ctrl =& $ilCtrl;
                
                $this->ctrl->saveParameter($this, "ref_id");
        }


Field Documentation

ilSAHSEditGUI::$ilias

Definition at line 40 of file class.ilSAHSEditGUI.php.

Referenced by executeCommand(), and ilSAHSEditGUI().

ilSAHSEditGUI::$lng

Definition at line 42 of file class.ilSAHSEditGUI.php.

Referenced by executeCommand(), and ilSAHSEditGUI().

ilSAHSEditGUI::$tpl

Definition at line 41 of file class.ilSAHSEditGUI.php.

Referenced by ilSAHSEditGUI().


The documentation for this class was generated from the following file: