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';
13 include_once
'./Services/Payment/classes/class.ilPaymentShoppingCart.php';
14 include_once
'./Services/Payment/classes/class.ilPaymentObject.php';
15 include_once
'./Services/Payment/classes/class.ilGeneralSettings.php';
16 include_once
'./Services/Payment/classes/class.ilPaymentVendors.php';
17 include_once
'./Services/Payment/classes/class.ilPaymentTrustees.php';
18 include_once
'./Services/Payment/classes/class.ilPaymentBookings.php';
19 include_once
'./Services/Payment/classes/class.ilShopTopics.php';
21 include_once
'./Services/Payment/classes/class.ilPaymentCurrency.php';
61 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
66 $next_class = $this->ctrl->getNextClass();
67 $cmd = $this->ctrl->getCmd();
70 $allSet = $obj->getAll();
72 if(($ilUser->getId() == ANONYMOUS_USER_ID) && $next_class ==
'ilshopboughtobjectsgui')
74 $next_class =
'ilshopshoppingcartgui';
79 case 'ilpurchasebillgui':
80 include_once
'./Services/Payment/classes/class.ilPurchaseBillGUI.php';
82 $this->ctrl->forwardCommand($pt);
85 case 'ilpurchasebmfgui':
86 include_once
'./Services/Payment/classes/class.ilPurchaseBMFGUI.php';
88 $this->ctrl->forwardCommand($pt);
91 case 'ilshopboughtobjectsgui':
92 include_once
'./Services/Payment/classes/class.ilShopBoughtObjectsGUI.php';
96 case 'ilshopshoppingcartgui':
97 include_once
'./Services/Payment/classes/class.ilShopShoppingCartGUI.php';
101 case 'ilshopadvancedsearchgui':
102 if ((
bool) $allSet[
'hide_advanced_search'])
104 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
106 include_once
'./Services/Payment/classes/class.ilShopAdvancedSearchGUI.php';
110 case 'ilshoppersonalsettingsgui':
111 include_once
'./Services/Payment/classes/class.ilShopPersonalSettingsGUI.php';
115 case 'ilpaymentadmingui':
116 include_once
'./Services/Payment/classes/class.ilPaymentAdminGUI.php';
120 case 'ilshopinfogui':
121 include_once
'./Services/Payment/classes/class.ilShopInfoGUI.php';
125 case 'ilshopnewsgui':
126 if ((
bool) $allSet[
'hide_news'])
128 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
130 include_once
'./Services/Payment/classes/class.ilShopNewsGUI.php';
136 if(
$cmd ==
'redirect')
141 include_once
'./Services/Payment/classes/class.ilShopGUI.php';
142 $this->ctrl->forwardCommand(
new ilShopGUI());
153 global $ilTabs, $ilUser;
158 $allSet = $obj->getAll();
160 $ilTabs->addTarget(
'content', $this->ctrl->getLinkTargetByClass(
'ilshopgui'),
'',
'',
'');
161 if (!(
bool)$allSet[
'hide_advanced_search']) {
162 $ilTabs->addTarget(
'advanced_search', $this->ctrl->getLinkTargetByClass(
'ilshopadvancedsearchgui'),
'',
'',
'');
165 $ilTabs->addTarget(
'shop_info',$this->ctrl->getLinkTargetByClass(
'ilshopinfogui') ,
'' ,
'',
'');
167 if (!(
bool)$allSet[
'hide_news'])
169 $ilTabs->addTarget(
'payment_news',$this->ctrl->getLinkTargetByClass(
'ilshopnewsgui'),
'' ,
'',
'');
171 if(ANONYMOUS_USER_ID != $ilUser->getId())
175 $ilTabs->addTarget(
'pay_personal_settings', $this->ctrl->getLinkTargetByClass(
'ilshoppersonalsettingsgui'),
'',
'',
'');
179 $ilTabs->addTarget(
'paya_buyed_objects', $this->ctrl->getLinkTargetByClass(
'ilshopboughtobjectsgui'),
'',
'',
'');
185 $ilTabs->addTarget(
'paya_header', $this->ctrl->getLinkTargetByClass(
'ilpaymentadmingui'),
'',
'',
'');
190 $ilTabs->addTarget(
'paya_shopping_cart', $this->ctrl->getLinkTargetByClass(
'ilshopshoppingcartgui'),
'',
'',
'');
200 case 'ilshopshoppingcartgui':
201 $ilCtrl->redirectByClass(
'ilshopshoppingcartgui',
'',
'',
false,
false);