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
00033 include_once "./payment/classes/class.ilPaymentBaseGUI.php";
00034 include_once "./payment/classes/class.ilPaymentShoppingCartGUI.php";
00035
00036 class ilPaymentGUI extends ilPaymentBaseGUI
00037 {
00038 var $ctrl;
00039
00040 var $user_obj;
00041
00042 function ilPaymentGUI(&$user_obj)
00043 {
00044 global $ilCtrl;
00045
00046 $this->ctrl =& $ilCtrl;
00047
00048 $this->ilPaymentBaseGUI();
00049 $this->setMainSection($this->);
00050
00051
00052 $this->user_obj =& $user_obj;
00053 }
00057 function &executeCommand()
00058 {
00059 global $tree;
00060
00061 $cmd = $this->ctrl->getCmd();
00062 switch ($this->ctrl->getNextClass($this))
00063 {
00064 case 'ilpaymentshoppingcartgui':
00065 $this->setSection($this->SECTION_SHOPPING_CART);
00066 $this->buildHeader();
00067
00068 include_once './payment/classes/class.ilPaymentShoppingCartGUI.php';
00069
00070 $pt =& new ilPaymentShoppingCartGUI($this->user_obj);
00071
00072 $this->ctrl->forwardCommand($pt);
00073 break;
00074
00075
00076
00077 default:
00078 $this->__forwardToDefault();
00079 break;
00080 }
00081 }
00082
00083 function __forwardToDefault()
00084 {
00085 $this->ctrl->redirectByClass('ilpaymentshoppingcartgui');
00086
00087 return true;
00088 }
00089
00090 }
00091 ?>