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

Private Member Functions

 forwardToDefault ()

Detailed Description

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

Member Function Documentation

ilPaymentAdminGUI::executeCommand ( )

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

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

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
switch($next_class)
{
case 'ilpaymenttrusteegui':
include_once 'payment/classes/class.ilPaymentTrusteeGUI.php';
$ilCtrl->forwardCommand(new ilPaymentTrusteeGUI($this->user_obj));
break;
case 'ilpaymentobjectgui':
include_once 'payment/classes/class.ilPaymentObjectGUI.php';
$ilCtrl->forwardCommand(new ilPaymentObjectGUI($this->user_obj));
break;
case 'ilpaymentstatisticgui':
include_once 'payment/classes/class.ilPaymentStatisticGUI.php';
$ilCtrl->forwardCommand(new ilPaymentStatisticGUI($this->user_obj));
break;
case 'ilpaymentbilladmingui':
include_once 'payment/classes/class.ilPaymentBillAdminGUI.php';
$ilCtrl->forwardCommand(new ilPaymentBillAdminGUI($this->user_obj, (int)$_GET['pobject_id']));
break;
case 'ilpaymentcoupongui':
include_once '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 87 of file class.ilPaymentAdminGUI.php.

References $ilCtrl, ilPaymentTrustees\_hasObjectPermission(), ilPaymentTrustees\_hasStatisticPermission(), and ilPaymentVendors\_isVendor().

Referenced by executeCommand().

{
global $ilCtrl;
if(ilPaymentVendors::_isVendor($this->user_obj->getId()) ||
ilPaymentTrustees::_hasStatisticPermission($this->user_obj->getId()))
{
$ilCtrl->redirectByClass('ilpaymentstatisticgui');
}
else if(ilPaymentTrustees::_hasObjectPermission($this->user_obj->getId()))
{
$ilCtrl->redirectByClass('ilpaymentobjectgui');
}
echo 'No access to payment administration!';
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 42 of file class.ilPaymentAdminGUI.php.

{
$this->user_obj = $user_obj;
}

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