<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* Set variables up before form is built
*
* @return void
- * @access public
*/
public function preProcess() {
parent::preProcess();
* Set the default values
*
* @return void
- * @access public
*/
/**
*
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
// check if the user is registered and we have a contact ID
$contactID = $this->getContactID();
* Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
// build profiles first so that we can determine address fields etc
}
//to create an cms user
- if (!$this->_userID) {
+ if (!$this->_contactID) {
$createCMSUser = FALSE;
if ($this->_values['custom_pre_id']) {
/**
* Build elements to enable pay on behalf of an organization.
*
- * @access public
*/
- function buildOnBehalfOrganization() {
+ public function buildOnBehalfOrganization() {
if ($this->_membershipContactID) {
$entityBlock = array('contact_id' => $this->_membershipContactID);
CRM_Core_BAO_Location::getValues($entityBlock, $this->_defaults);
/**
* Build elements to collect information for recurring contributions
*
- * @access public
*
* @param CRM_Core_Form $form
*/
*
*
* @return true if no errors, else array of errors
- * @access public
* @static
*/
- static function formRule($fields, $files, $self) {
+ public static function formRule($fields, $files, $self) {
$errors = array();
$amount = self::computeAmount($fields, $self);
/**
* Process the form submission
*
- * @access public
*
* @return void
*/
* @param CRM_Contribute_Form_Contribution_Main|CRM_Event_Form_Registration_Register $form
* @param bool $noFees
*/
- static function preProcessPaymentOptions(&$form, $noFees = FALSE) {
+ public static function preProcessPaymentOptions(&$form, $noFees = FALSE) {
$form->_snippet = CRM_Utils_Array::value('snippet', $_GET);
$form->_paymentProcessors = $noFees ? array() : $form->get('paymentProcessors');
$form->assign('paymentProcessorID', $form->_paymentProcessorID);
}
}
-