3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 class CRM_Contribute_Page_PaymentInfo
extends CRM_Core_Page
{
19 public function preProcess() {
20 $this->_component
= CRM_Utils_Request
::retrieve('component', 'String', $this, TRUE);
21 $this->_action
= CRM_Utils_Request
::retrieve('action', 'String', $this, FALSE, 'browse');
22 $this->_id
= CRM_Utils_Request
::retrieve('id', 'Positive', $this, TRUE);
23 $this->_context
= CRM_Utils_Request
::retrieve('context', 'Alphanumeric', $this, TRUE);
24 $this->_cid
= CRM_Utils_Request
::retrieve('cid', 'String', $this, TRUE);
26 $this->assign('cid', $this->_cid
);
27 $this->assign('id', $this->_id
);
28 $this->assign('context', $this->_context
);
29 $this->assign('component', $this->_component
);
32 public function browse() {
33 $getTrxnInfo = $this->_context
== 'transaction';
34 $paymentInfo = CRM_Contribute_BAO_Contribution
::getPaymentInfo($this->_id
, $this->_component
, $getTrxnInfo, TRUE);
35 if ($this->_context
== 'payment_info') {
36 $this->assign('paymentInfo', $paymentInfo);
43 * This typically involves assigning the appropriate
47 * The content generated by running this page
49 public function run() {