X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FEventFees.php;h=6b116153fd7d1d9d77e2b5bdfa658d4506fc5299;hb=ef10e0b52408ba266239a859756d757a10348228;hp=de19ab6ab8a7a855cede7d5ad42c02ca8b34c33e;hpb=13607d6e9346d7adeef72866afb4ded9046305d0;p=civicrm-core.git diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index de19ab6ab8..6b116153fd 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -1,7 +1,7 @@ _eventId) { $form->_eventId = CRM_Utils_Request::retrieve('eventId', 'Positive', $form); @@ -71,13 +70,12 @@ class CRM_Event_Form_EventFees { * This function sets the default values for the form in edit/view mode * the default values are retrieved from the database * - * @access public * - * @param $form + * @param CRM_Core_Form $form * * @return void */ - static function setDefaultValues(&$form) { + public static function setDefaultValues(&$form) { $defaults = array(); if ($form->_eventId) { @@ -253,15 +251,14 @@ class CRM_Event_Form_EventFees { /** * This function sets the default values for price set. * - * @access public * - * @param $participantID - * @param null $eventID + * @param int $participantID + * @param int $eventID * @param bool $includeQtyZero * * @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'); @@ -339,14 +336,13 @@ SELECT id, html_type } /** - * Function to build the form + * Build the form object * - * @param $form + * @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) { @@ -410,7 +406,7 @@ SELECT id, html_type } } if ($form->_mode) { - CRM_Core_Payment_Form::buildCreditCard($form, TRUE); + CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, FALSE); } elseif (!$form->_mode) { $form->addElement('checkbox', 'record_contribution', ts('Record Payment?'), NULL, @@ -506,4 +502,3 @@ SELECT id, html_type $form->assign('hasPayment', $form->_paymentId); } } -