* @param CRM_Core_Form $form
*
* @return void
- * @access public
*/
- static function preProcess(&$form) {
+ public static function preProcess(&$form) {
//as when call come from register.php
if (!$form->_eventId) {
$form->_eventId = CRM_Utils_Request::retrieve('eventId', 'Positive', $form);
* This function sets the default values for the form in edit/view mode
* the default values are retrieved from the database
*
- * @access public
*
* @param CRM_Core_Form $form
*
* @return void
*/
- static function setDefaultValues(&$form) {
+ public static function setDefaultValues(&$form) {
$defaults = array();
if ($form->_eventId) {
/**
* This function sets the default values for price set.
*
- * @access public
*
* @param int $participantID
* @param int $eventID
*
* @return void
*/
- static function setDefaultPriceSet($participantID, $eventID = NULL, $includeQtyZero = TRUE) {
+ public static function setDefaultPriceSet($participantID, $eventID = NULL, $includeQtyZero = TRUE) {
$defaults = array();
if (!$eventID && $participantID) {
$eventID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $participantID, 'event_id');
* @param CRM_Core_Form $form
*
* @return void
- * @access public
*/
- static function buildQuickForm(&$form) {
+ public static function buildQuickForm(&$form) {
if ($form->_eventId) {
$form->_isPaidEvent = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_eventId, 'is_monetary');
if ($form->_isPaidEvent) {
}
}
if ($form->_mode) {
- CRM_Core_Payment_Form::buildPaymentForm($form, $form->_processor, FALSE);
+ CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, FALSE);
}
elseif (!$form->_mode) {
$form->addElement('checkbox', 'record_contribution', ts('Record Payment?'), NULL,
$form->assign('hasPayment', $form->_paymentId);
}
}
-