ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPaymentAdminGUI Class Reference
+ Collaboration diagram for ilPaymentAdminGUI:

Public Member Functions

 ilPaymentAdminGUI ($user_obj)
 executeCommand ()

Protected Member Functions

 buildSubTabs ()

Private Member Functions

 forwardToDefault ()

Detailed Description

Definition at line 17 of file class.ilPaymentAdminGUI.php.

Member Function Documentation

ilPaymentAdminGUI::buildSubTabs ( )
protected

Definition at line 24 of file class.ilPaymentAdminGUI.php.

References $ilCtrl, $ilUser, ilPaymentSettings\_getInstance(), ilPaymentTrustees\_hasCouponsPermission(), ilPaymentTrustees\_hasObjectPermission(), and ilPaymentTrustees\_hasStatisticPermission().

Referenced by executeCommand().

{
global $ilUser, $ilTabs, $ilCtrl;
if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
{
$ilTabs->addSubTabTarget('bookings', $ilCtrl->getLinkTargetByClass('ilpaymentstatisticgui'), '', '', '');
}
if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
{
$ilTabs->addSubTabTarget('paya_object', $ilCtrl->getLinkTargetByClass('ilpaymentobjectgui'), '', '', '');
}
if(ilPaymentVendors::_isVendor($ilUser->getId()))
{
$ilTabs->addSubTabTarget('paya_trustees', $ilCtrl->getLinkTargetByClass('ilpaymenttrusteegui'), '', '', '');
}
if(!(bool)$settings->get('hide_coupons'))
{
if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
{
$ilTabs->addSubTabTarget('paya_coupons_coupons', $ilCtrl->getLinkTargetByClass('ilpaymentcoupongui'), '', '', '');
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentAdminGUI::executeCommand ( )

Definition at line 58 of file class.ilPaymentAdminGUI.php.

References $ilCtrl, buildSubTabs(), and forwardToDefault().

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass($this);
$this->buildSubTabs();
switch($next_class)
{
case 'ilpaymenttrusteegui':
include_once './Services/Payment/classes/class.ilPaymentTrusteeGUI.php';
$ilCtrl->forwardCommand(new ilPaymentTrusteeGUI($this->user_obj));
break;
case 'ilpaymentobjectgui':
include_once './Services/Payment/classes/class.ilPaymentObjectGUI.php';
$ilCtrl->forwardCommand(new ilPaymentObjectGUI($this->user_obj));
break;
case 'ilpaymentstatisticgui':
include_once './Services/Payment/classes/class.ilPaymentStatisticGUI.php';
$ilCtrl->forwardCommand(new ilPaymentStatisticGUI($this->user_obj));
break;
case 'ilpaymentcoupongui':
include_once './Services/Payment/classes/class.ilPaymentCouponGUI.php';
$ilCtrl->forwardCommand(new ilPaymentCouponGUI($this->user_obj));
break;
default:
$this->forwardToDefault();
break;
}
}

+ Here is the call graph for this function:

ilPaymentAdminGUI::forwardToDefault ( )
private

Definition at line 93 of file class.ilPaymentAdminGUI.php.

References $ilCtrl, $lng, ilPaymentTrustees\_hasCouponsPermission(), ilPaymentTrustees\_hasObjectPermission(), ilPaymentTrustees\_hasStatisticPermission(), and ilUtil\sendInfo().

Referenced by executeCommand().

{
global $ilCtrl, $lng;
$is_vendor = ilPaymentVendors::_isVendor($this->user_obj->getId());
$has_stat_perm = ilPaymentTrustees::_hasStatisticPermission($this->user_obj->getId());
$has_obj_perm = ilPaymentTrustees::_hasObjectPermission($this->user_obj->getId());
$has_coup_perm = ilPaymentTrustees::_hasCouponsPermission($this->user_obj->getId());
if($is_vendor || $has_stat_perm)
{
$ilCtrl->redirectByClass('ilpaymentstatisticgui');
}
else if($has_obj_perm)
{
$ilCtrl->redirectByClass('ilpaymentobjectgui');
}
else if($has_coup_perm)
{
$ilCtrl->redirectByClass('ilpaymentcoupongui');
}
ilUtil::sendInfo($lng->txt("no_permission"));
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentAdminGUI::ilPaymentAdminGUI (   $user_obj)

Definition at line 19 of file class.ilPaymentAdminGUI.php.

{
$this->user_obj = $user_obj;
}

The documentation for this class was generated from the following file: