ILIAS  Release_4_4_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 ()

Private Member Functions

 forwardToDefault ()

Detailed Description

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

Member Function Documentation

ilPaymentAdminGUI::executeCommand ( )

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

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

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
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 60 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 20 of file class.ilPaymentAdminGUI.php.

{
$this->user_obj = $user_obj;
}

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