59 {
61
62 if(!IS_PAYMENT_ENABLED)
63 {
64 $this->ilErr->raiseError($this->lng->txt('permission_denied'), $this->ilErr->MESSAGE);
65 }
66
68
69 $next_class = $this->ctrl->getNextClass();
70 $cmd = $this->ctrl->getCmd();
71 $cmd_class = $this->ctrl->getCmdClass();
72
73 if(!$next_class && $cmd_class)
74 {
75 $next_class = $cmd_class;
76 }
77
79 $allSet = $obj->getAll();
80
81 if((
$ilUser->getId() == ANONYMOUS_USER_ID) && $next_class ==
'ilshopboughtobjectsgui')
82 {
83 $next_class = 'ilshopshoppingcartgui';
84 }
85
86 switch($next_class)
87 {
88 case 'ilpurchasebillgui':
89 include_once './Services/Payment/classes/class.ilPurchaseBillGUI.php';
91 $this->ctrl->forwardCommand($pt);
92 break;
93
94 case 'ilpurchasebmfgui':
95 include_once './Services/Payment/classes/class.ilPurchaseBMFGUI.php';
97 $this->ctrl->forwardCommand($pt);
98 break;
99
100 case 'ilshopboughtobjectsgui':
101 include_once './Services/Payment/classes/class.ilShopBoughtObjectsGUI.php';
103 break;
104
105 case 'ilshopshoppingcartgui':
106 include_once './Services/Payment/classes/class.ilShopShoppingCartGUI.php';
108 break;
109
110 case 'ilshopadvancedsearchgui':
111 if ((bool) $allSet['hide_advanced_search'])
112 {
113 $this->ilErr->raiseError($this->lng->txt('permission_denied'), $this->ilErr->MESSAGE);
114 }
115 include_once './Services/Payment/classes/class.ilShopAdvancedSearchGUI.php';
117 break;
118
119 case 'ilshoppersonalsettingsgui':
120 include_once './Services/Payment/classes/class.ilShopPersonalSettingsGUI.php';
122 break;
123
124 case 'ilpaymentadmingui':
125 include_once './Services/Payment/classes/class.ilPaymentAdminGUI.php';
127 break;
128
129 case 'ilshopinfogui':
130 if ((bool) $allSet['hide_shop_info'])
131 {
132 $this->ilErr->raiseError($this->lng->txt('permission_denied'), $this->ilErr->MESSAGE);
133 }
134 include_once './Services/Payment/classes/class.ilShopInfoGUI.php';
136 break;
137
138 case 'ilshopnewsgui':
139 if ((bool) $allSet['hide_news'])
140 {
141 $this->ilErr->raiseError($this->lng->txt('permission_denied'), $this->ilErr->MESSAGE);
142 }
143 include_once './Services/Payment/classes/class.ilShopNewsGUI.php';
145 break;
146
147 case 'iltermsconditionsgui':
148
149 include_once './Services/Payment/classes/class.ilTermsConditionsGUI.php';
151 break;
152
153 case 'ilshoppurchasegui':
154 include_once './Services/Payment/classes/class.ilShopPurchaseGUI.php';
156 break;
157
158 case 'ilshopgui':
159 default:
160 if(
$cmd ==
'redirect')
161 {
163 }
164
165 include_once './Services/Payment/classes/class.ilShopGUI.php';
166 $this->ctrl->forwardCommand(
new ilShopGUI());
167 break;
168 }
169
170 $this->tpl->show();
171
172 return true;
173 }
Class ilShopAdvancedSearchGUI.
Class ilShopBoughtObjectsGUI.
Class ilShopPersonalSettingsGUI.
Class ilTermsConditionsGUI.