5 include_once
'./Services/Payment/classes/class.ilShopBaseGUI.php';
6 include_once
'./Services/Payment/classes/class.ilShopGUI.php';
7 include_once
'./Services/Payment/classes/class.ilShopAdvancedSearchGUI.php';
9 include_once
'./Services/Payment/classes/class.ilShopSearchResult.php';
10 include_once
'./Services/Payment/classes/class.ilShopInfoGUI.php';
11 include_once
'./Services/Payment/classes/class.ilShopNewsGUI.php';
12 include_once
'./Services/Payment/classes/class.ilTermsConditionsGUI.php';
14 include_once
'./Services/Payment/classes/class.ilPaymentShoppingCart.php';
15 include_once
'./Services/Payment/classes/class.ilPaymentObject.php';
16 include_once
'./Services/Payment/classes/class.ilPaymentSettings.php';
17 include_once
'./Services/Payment/classes/class.ilPaymentVendors.php';
18 include_once
'./Services/Payment/classes/class.ilPaymentTrustees.php';
19 include_once
'./Services/Payment/classes/class.ilPaymentBookings.php';
20 include_once
'./Services/Payment/classes/class.ilShopTopics.php';
22 include_once
'./Services/Payment/classes/class.ilPaymentCurrency.php';
23 include_once
'./Services/Payment/classes/class.ilShopLinkBuilder.php';
62 if(!IS_PAYMENT_ENABLED)
64 $this->ilErr->raiseError($this->lng->txt(
'permission_denied'), $this->ilErr->MESSAGE);
69 $next_class = $this->ctrl->getNextClass();
70 $cmd = $this->ctrl->getCmd();
71 $cmd_class = $this->ctrl->getCmdClass();
73 if(!$next_class && $cmd_class)
75 $next_class = $cmd_class;
79 $allSet = $obj->getAll();
81 if(($ilUser->getId() == ANONYMOUS_USER_ID) && $next_class ==
'ilshopboughtobjectsgui')
83 $next_class =
'ilshopshoppingcartgui';
88 case 'ilpurchasebillgui':
89 include_once
'./Services/Payment/classes/class.ilPurchaseBillGUI.php';
91 $this->ctrl->forwardCommand($pt);
94 case 'ilpurchasebmfgui':
95 include_once
'./Services/Payment/classes/class.ilPurchaseBMFGUI.php';
97 $this->ctrl->forwardCommand($pt);
100 case 'ilshopboughtobjectsgui':
101 include_once
'./Services/Payment/classes/class.ilShopBoughtObjectsGUI.php';
105 case 'ilshopshoppingcartgui':
106 include_once
'./Services/Payment/classes/class.ilShopShoppingCartGUI.php';
110 case 'ilshopadvancedsearchgui':
111 if ((
bool) $allSet[
'hide_advanced_search'])
113 $this->ilErr->raiseError($this->lng->txt(
'permission_denied'), $this->ilErr->MESSAGE);
115 include_once
'./Services/Payment/classes/class.ilShopAdvancedSearchGUI.php';
119 case 'ilshoppersonalsettingsgui':
120 include_once
'./Services/Payment/classes/class.ilShopPersonalSettingsGUI.php';
124 case 'ilpaymentadmingui':
125 include_once
'./Services/Payment/classes/class.ilPaymentAdminGUI.php';
129 case 'ilshopinfogui':
130 if ((
bool) $allSet[
'hide_shop_info'])
132 $this->ilErr->raiseError($this->lng->txt(
'permission_denied'), $this->ilErr->MESSAGE);
134 include_once
'./Services/Payment/classes/class.ilShopInfoGUI.php';
138 case 'ilshopnewsgui':
139 if ((
bool) $allSet[
'hide_news'])
141 $this->ilErr->raiseError($this->lng->txt(
'permission_denied'), $this->ilErr->MESSAGE);
143 include_once
'./Services/Payment/classes/class.ilShopNewsGUI.php';
147 case 'iltermsconditionsgui':
149 include_once
'./Services/Payment/classes/class.ilTermsConditionsGUI.php';
153 case 'ilshoppurchasegui':
154 include_once
'./Services/Payment/classes/class.ilShopPurchaseGUI.php';
160 if(
$cmd ==
'redirect')
165 include_once
'./Services/Payment/classes/class.ilShopGUI.php';
166 $this->ctrl->forwardCommand(
new ilShopGUI());
182 $allSet = $obj->getAll();
184 $ilTabs->addTarget(
'content', $this->ctrl->getLinkTargetByClass(
'ilshopgui',
'firstpage'),
'',
'',
'');
186 if (!(
bool)$allSet[
'hide_advanced_search']) {
187 $ilTabs->addTarget(
'advanced_search', $this->ctrl->getLinkTargetByClass(
'ilshopadvancedsearchgui'),
'',
'',
'');
189 if (!(
bool)$allSet[
'hide_shop_info'])
191 $ilTabs->addTarget(
'shop_info',$this->ctrl->getLinkTargetByClass(
'ilshopinfogui') ,
'' ,
'',
'');
193 if (!(
bool)$allSet[
'hide_news'])
195 $ilTabs->addTarget(
'payment_news',$this->ctrl->getLinkTargetByClass(
'ilshopnewsgui'),
'' ,
'',
'');
197 if(ANONYMOUS_USER_ID != $ilUser->getId())
201 $ilTabs->addTarget(
'pay_personal_settings', $this->ctrl->getLinkTargetByClass(
'ilshoppersonalsettingsgui'),
'',
'',
'');
205 $ilTabs->addTarget(
'paya_buyed_objects', $this->ctrl->getLinkTargetByClass(
'ilshopboughtobjectsgui'),
'',
'',
'');
208 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
211 $ilTabs->addTarget(
'paya_header', $this->ctrl->getLinkTargetByClass(
'ilpaymentadmingui'),
'',
'',
'');
216 $ilTabs->addTarget(
'paya_shopping_cart', $this->ctrl->getLinkTargetByClass(
'ilshopshoppingcartgui'),
'',
'',
'');
218 $ilTabs->addTarget(
'terms_conditions',$this->ctrl->getLinkTargetByClass(array(
'iltermsconditionsgui'),
''));
227 case 'ilshopshoppingcartgui':
228 $ilCtrl->redirectByClass(
'ilshopshoppingcartgui',
'',
'',
false,
false);
230 case 'ilshopadvancedsearchgui':
231 $ilCtrl->redirectByClass(
'ilshopadvancedsearchgui',
'',
'',
false,
false);
233 case 'ilshopboughtobjectsgui':
234 $ilCtrl->redirectByClass(
'ilshopboughtobjectsgui',
'',
'',
false,
false);