Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00038 include_once './Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
00039
00040 class ilLearningProgressGUI extends ilLearningProgressBaseGUI
00041 {
00042 function ilLearningProgressGUI($a_mode,$a_ref_id = 0,$a_user_id = 0)
00043 {
00044 parent::ilLearningProgressBaseGUI($a_mode,$a_ref_id,$a_user_id);
00045 }
00046
00050 function &executeCommand()
00051 {
00052 global $ilBench;
00053
00054 $ilBench->start('LearningProgress','0000_Start');
00055
00056
00057 $this->ctrl->setReturn($this, "");
00058
00059
00060 $this->__buildHeader();
00061 switch($this->__getNextClass())
00062 {
00063 case 'illplistofprogressgui':
00064 include_once 'Services/Tracking/classes/class.ilLPListOfProgressGUI.php';
00065
00066 $this->__setSubTabs(LP_ACTIVE_PROGRESS);
00067 $this->__setCmdClass('illplistofprogressgui');
00068 $lop_gui = new ilLPListOfProgressGUI($this->getMode(),$this->getRefId(),$this->getUserId());
00069 $this->ctrl->forwardCommand($lop_gui);
00070 break;
00071
00072 case 'illplistofobjectsgui':
00073 include_once 'Services/Tracking/classes/class.ilLPListOfObjectsGUI.php';
00074
00075 $this->__setSubTabs(LP_ACTIVE_OBJECTS);
00076 $loo_gui = new ilLPListOfObjectsGUI($this->getMode(),$this->getRefId());
00077 $this->__setCmdClass('illplistofobjectsgui');
00078 $this->ctrl->forwardCommand($loo_gui);
00079 break;
00080
00081 case 'illplistofsettingsgui':
00082 include_once 'Services/Tracking/classes/class.ilLPListOfSettingsGUI.php';
00083
00084 $this->__setSubTabs(LP_ACTIVE_SETTINGS);
00085 $los_gui = new ilLPListOfSettingsGUI($this->getMode(),$this->getRefId());
00086 $this->__setCmdClass('illplistofsettingsgui');
00087 $this->ctrl->forwardCommand($los_gui);
00088 break;
00089
00090 default:
00091 die("No mode given");
00092 }
00093
00094
00095 $this->__buildFooter();
00096
00097
00098 $ilBench->stop('LearningProgress','0000_Start');
00099
00100 return true;
00101 }
00102
00103 function __setCmdClass($a_class)
00104 {
00105
00106
00107
00108 if($this->ctrl->getCmdClass() == strtolower(get_class($this)))
00109 {
00110 $this->ctrl->setCmdClass(strtolower($a_class));
00111 }
00112 return true;
00113 }
00114
00115 function __getNextClass()
00116 {
00117 if(strlen($next_class = $this->ctrl->getNextClass()))
00118 {
00119 return $next_class;
00120 }
00121 switch($this->getMode())
00122 {
00123 case LP_MODE_ADMINISTRATION:
00124 return 'illplistofobjectsgui';
00125
00126 case LP_MODE_REPOSITORY:
00127 return 'illplistofprogressgui';
00128
00129 case LP_MODE_PERSONAL_DESKTOP:
00130 return 'illplistofprogressgui';
00131
00132 case LP_MODE_USER_FOLDER:
00133 return 'illplistofprogressgui';
00134 }
00135 }
00136 }
00137 ?>