11 include_once
'./Services/Payment/classes/class.ilPaymentVendors.php';
12 include_once
'./Services/Payment/classes/class.ilShopBaseGUI.php';
13 include_once
'./Services/Payment/classes/class.ilPaymentTrustees.php';
14 include_once
'./Services/Payment/classes/class.ilPaymentObjectSelector.php';
15 include_once
'./Services/Payment/classes/class.ilPaymentSettings.php';
21 $this->user_obj = $user_obj;
30 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
33 $ilTabs->addSubTabTarget(
'bookings', $ilCtrl->getLinkTargetByClass(
'ilpaymentstatisticgui'),
'',
'',
'');
36 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
39 $ilTabs->addSubTabTarget(
'paya_object', $ilCtrl->getLinkTargetByClass(
'ilpaymentobjectgui'),
'',
'',
'');
43 if(ilPaymentVendors::_isVendor($ilUser->getId()))
45 $ilTabs->addSubTabTarget(
'paya_trustees', $ilCtrl->getLinkTargetByClass(
'ilpaymenttrusteegui'),
'',
'',
'');
48 if(!(
bool)$settings->get(
'hide_coupons'))
50 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
53 $ilTabs->addSubTabTarget(
'paya_coupons_coupons', $ilCtrl->getLinkTargetByClass(
'ilpaymentcoupongui'),
'',
'',
'');
62 $next_class = $ilCtrl->getNextClass($this);
67 case 'ilpaymenttrusteegui':
68 include_once
'./Services/Payment/classes/class.ilPaymentTrusteeGUI.php';
72 case 'ilpaymentobjectgui':
73 include_once
'./Services/Payment/classes/class.ilPaymentObjectGUI.php';
77 case 'ilpaymentstatisticgui':
78 include_once
'./Services/Payment/classes/class.ilPaymentStatisticGUI.php';
82 case 'ilpaymentcoupongui':
83 include_once
'./Services/Payment/classes/class.ilPaymentCouponGUI.php';
97 $is_vendor = ilPaymentVendors::_isVendor($this->user_obj->getId());
102 if($is_vendor || $has_stat_perm)
104 $ilCtrl->redirectByClass(
'ilpaymentstatisticgui');
106 else if($has_obj_perm)
108 $ilCtrl->redirectByClass(
'ilpaymentobjectgui');
110 else if($has_coup_perm)
112 $ilCtrl->redirectByClass(
'ilpaymentcoupongui');