Inheritance diagram for ilPaymentAdminGUI:
Collaboration diagram for ilPaymentAdminGUI:Public Member Functions | |
| ilPaymentAdminGUI (&$user_obj) | |
| & | executeCommand () |
| execute command | |
| __forwardToDefault () | |
Data Fields | |
| $ctrl | |
| $user_obj | |
Definition at line 40 of file class.ilPaymentAdminGUI.php.
| ilPaymentAdminGUI::__forwardToDefault | ( | ) |
Definition at line 120 of file class.ilPaymentAdminGUI.php.
References ilPaymentTrustees::_hasObjectPermission(), ilPaymentTrustees::_hasStatisticPermission(), and ilPaymentVendors::_isVendor().
Referenced by executeCommand().
{
if(ilPaymentVendors::_isVendor($this->user_obj->getId()) or
ilPaymentTrustees::_hasStatisticPermission($this->user_obj->getId()))
{
$this->ctrl->redirectByClass('ilpaymentstatisticgui');
}
else if(ilPaymentTrustees::_hasObjectPermission($this->user_obj->getId()))
{
$this->ctrl->redirectByClass('ilpaymentobjectgui');
}
echo 'No access to payment admin';
return false;
}
Here is the call graph for this function:
Here is the caller graph for this function:| & ilPaymentAdminGUI::executeCommand | ( | ) |
execute command
Definition at line 61 of file class.ilPaymentAdminGUI.php.
References $_GET, $cmd, $tree, __forwardToDefault(), ilPaymentBaseGUI::buildHeader(), and ilPaymentBaseGUI::setSection().
{
global $tree;
$cmd = $this->ctrl->getCmd();
switch ($this->ctrl->getNextClass($this))
{
case 'ilpaymenttrusteegui':
$this->setSection($this->SECTION_TRUSTEE);
$this->buildHeader();
include_once './payment/classes/class.ilPaymentTrusteeGUI.php';
$pt =& new ilPaymentTrusteeGUI($this->user_obj);
$this->ctrl->forwardCommand($pt);
break;
case 'ilpaymentobjectgui':
$this->setSection($this->SECTION_OBJECT);
$this->buildHeader();
include_once './payment/classes/class.ilPaymentObjectGUI.php';
$po =& new ilPaymentObjectGUI($this->user_obj);
$this->ctrl->forwardCommand($po);
break;
case 'ilpaymentstatisticgui':
$this->setSection($this->SECTION_STATISTIC);
$this->buildHeader();
include_once './payment/classes/class.ilPaymentStatisticGUI.php';
$ps =& new ilPaymentStatisticGUI($this->user_obj);
$this->ctrl->forwardCommand($ps);
break;
case 'ilpaymentbilladmingui':
$this->setSection($this->SECTION_OBJECT);
$this->buildHeader();
include_once './payment/classes/class.ilPaymentBillAdminGUI.php';
$po =& new ilPaymentBillAdminGUI($this->user_obj,$_GET['pobject_id']);
$this->ctrl->forwardCommand($po);
break;
default:
$this->__forwardToDefault();
break;
}
}
Here is the call graph for this function:| ilPaymentAdminGUI::ilPaymentAdminGUI | ( | &$ | user_obj | ) |
Definition at line 46 of file class.ilPaymentAdminGUI.php.
References $ilCtrl, $user_obj, ilPaymentBaseGUI::ilPaymentBaseGUI(), and ilPaymentBaseGUI::setMainSection().
{
global $ilCtrl;
$this->ctrl =& $ilCtrl;
$this->ilPaymentBaseGUI();
$this->setMainSection($this->ADMIN);
// Get user object
$this->user_obj =& $user_obj;
}
Here is the call graph for this function:| ilPaymentAdminGUI::$ctrl |
Definition at line 42 of file class.ilPaymentAdminGUI.php.
| ilPaymentAdminGUI::$user_obj |
Reimplemented from ilPaymentBaseGUI.
Definition at line 44 of file class.ilPaymentAdminGUI.php.
Referenced by ilPaymentAdminGUI().
1.7.1