Public Member Functions | |
ilLearningProgressGUI ($a_mode, $a_ref_id=0, $a_user_id=0) | |
& | executeCommand () |
execute command | |
__setCmdClass ($a_class) | |
__getNextClass () |
Definition at line 40 of file class.ilLearningProgressGUI.php.
ilLearningProgressGUI::__getNextClass | ( | ) |
Definition at line 125 of file class.ilLearningProgressGUI.php.
References $_SESSION, ilLearningProgressBaseGUI::getMode(), ilLearningProgressBaseGUI::getRefId(), and ilLearningProgressBaseGUI::isObjectAnonymized().
Referenced by executeCommand().
{ global $ilAccess; if(strlen($next_class = $this->ctrl->getNextClass())) { if($this->getMode() == LP_MODE_PERSONAL_DESKTOP) { $_SESSION['il_lp_history'] = $next_class; } return $next_class; } switch($this->getMode()) { case LP_MODE_ADMINISTRATION: return 'illplistofobjectsgui'; case LP_MODE_REPOSITORY: if(!$this->anonymized and !$this->isObjectAnonymized() and $ilAccess->checkAccess('edit_learning_progress','',$this->getRefId())) { return 'illplistofobjectsgui'; } return 'illplistofprogressgui'; case LP_MODE_PERSONAL_DESKTOP: if(strlen($_SESSION['il_lp_history'])) { return $_SESSION['il_lp_history']; } return 'illplistofprogressgui'; case LP_MODE_USER_FOLDER: return 'illplistofprogressgui'; } }
ilLearningProgressGUI::__setCmdClass | ( | $ | a_class | ) |
Definition at line 113 of file class.ilLearningProgressGUI.php.
Referenced by executeCommand().
{ // If cmd class == 'illearningprogressgui' the cmd class is set to the the new forwarded class // otherwise e.g illplistofprogressgui tries to forward (back) to illearningprogressgui. if($this->ctrl->getCmdClass() == strtolower(get_class($this))) { $this->ctrl->setCmdClass(strtolower($a_class)); } return true; }
& ilLearningProgressGUI::executeCommand | ( | ) |
execute command
Definition at line 50 of file class.ilLearningProgressGUI.php.
References $ilBench, ilLearningProgressBaseGUI::__buildFooter(), ilLearningProgressBaseGUI::__buildHeader(), __getNextClass(), __setCmdClass(), ilLearningProgressBaseGUI::__setSubTabs(), ilLearningProgressBaseGUI::getMode(), ilLearningProgressBaseGUI::getRefId(), and ilLearningProgressBaseGUI::getUserId().
{ global $ilBench; $ilBench->start('LearningProgress','0000_Start'); $this->ctrl->setReturn($this, ""); // E.g personal desktop mode needs locator header icon ... $this->__buildHeader(); switch($this->__getNextClass()) { case 'illplistofprogressgui': include_once 'Services/Tracking/classes/class.ilLPListOfProgressGUI.php'; $this->__setSubTabs(LP_ACTIVE_PROGRESS); $this->__setCmdClass('illplistofprogressgui'); $lop_gui = new ilLPListOfProgressGUI($this->getMode(),$this->getRefId(),$this->getUserId()); $this->ctrl->forwardCommand($lop_gui); break; case 'illplistofobjectsgui': include_once 'Services/Tracking/classes/class.ilLPListOfObjectsGUI.php'; $this->__setSubTabs(LP_ACTIVE_OBJECTS); $loo_gui = new ilLPListOfObjectsGUI($this->getMode(),$this->getRefId()); $this->__setCmdClass('illplistofobjectsgui'); $this->ctrl->forwardCommand($loo_gui); break; case 'illplistofsettingsgui': include_once 'Services/Tracking/classes/class.ilLPListOfSettingsGUI.php'; $this->__setSubTabs(LP_ACTIVE_SETTINGS); $los_gui = new ilLPListOfSettingsGUI($this->getMode(),$this->getRefId()); $this->__setCmdClass('illplistofsettingsgui'); $this->ctrl->forwardCommand($los_gui); break; case 'illmstatisticsgui': include_once 'Services/Tracking/classes/class.ilLMStatisticsGUI.php'; $this->__setSubTabs(LP_ACTIVE_LM_STATISTICS); $los_gui = new ilLMStatisticsGUI($this->getMode(),$this->getRefId()); $this->__setCmdClass('illmstatisticsgui'); $this->ctrl->forwardCommand($los_gui); break; default: die("No mode given"); } // E.G personal desktop mode needs $tpl->show(); $this->__buildFooter(); $ilBench->stop('LearningProgress','0000_Start'); return true; }
ilLearningProgressGUI::ilLearningProgressGUI | ( | $ | a_mode, | |
$ | a_ref_id = 0 , |
|||
$ | a_user_id = 0 | |||
) |
Definition at line 42 of file class.ilLearningProgressGUI.php.
References ilLearningProgressBaseGUI::ilLearningProgressBaseGUI().
{ parent::ilLearningProgressBaseGUI($a_mode,$a_ref_id,$a_user_id); }