<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_Event_Form_Registration_ThankYou extends CRM_Event_Form_Registration {
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built.
*
* @return void
- * @access public
*/
- function preProcess() {
+ public function preProcess() {
parent::preProcess();
- $this->_params = $this->get('params');
- $this->_lineItem = $this->get('lineItem');
- $this->_part = $this->get('part');
+ $this->_params = $this->get('params');
+ $this->_lineItem = $this->get('lineItem');
+ $this->_part = $this->get('part');
$this->_totalAmount = $this->get('totalAmount');
$this->_receiveDate = $this->get('receiveDate');
- $this->_trxnId = $this->get('trxnId');
- $finalAmount = $this->get('finalAmount');
+ $this->_trxnId = $this->get('trxnId');
+ $finalAmount = $this->get('finalAmount');
$this->assign('finalAmount', $finalAmount);
$participantInfo = $this->get('participantInfo');
$this->assign('part', $this->_part);
}
/**
- * overwrite action, since we are only showing elements in frozen mode
+ * Overwrite action, since we are only showing elements in frozen mode
* no help display needed
*
* @return int
- * @access public
*/
- function getAction() {
+ public function getAction() {
if ($this->_action & CRM_Core_Action::PREVIEW) {
return CRM_Core_Action::VIEW | CRM_Core_Action::PREVIEW;
}
}
/**
- * Function to build the form
+ * Build the form object.
*
* @return void
- * @access public
*/
public function buildQuickForm() {
// Assign the email address from a contact id lookup as in CRM_Event_BAO_Event->sendMail()
}
$this->assignToTemplate();
- $invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings');
+ $invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
$taxTerm = CRM_Utils_Array::value('tax_term', $invoiceSettings);
$invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings);
$getTaxDetails = FALSE;
$this->assign('isRequireApproval', $isRequireApproval);
// find pcp info
- $dao = new CRM_PCP_DAO_PCPBlock();
+ $dao = new CRM_PCP_DAO_PCPBlock();
$dao->entity_table = 'civicrm_event';
- $dao->entity_id = $this->_eventId;
- $dao->is_active = 1;
+ $dao->entity_id = $this->_eventId;
+ $dao->is_active = 1;
$dao->find(TRUE);
if ($dao->id) {
}
/**
- * Function to process the form
+ * Process the form submission.
*
- * @access public
*
* @return void
*/
- public function postProcess() {}
- //end of function
+ public function postProcess() {
+ }
/**
* Return a descriptive name for the page, used in wizard header
*
* @return string
- * @access public
*/
public function getTitle() {
return ts('Thank You Page');
}
-}
+}