X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FRegistration.php;h=ddb881f5716c7b98e5fc967e5d8336174219ea84;hb=0db6c3e15a8324d7f2d73c43c9b219a829351157;hp=0fbfed5d2531256f94852279710a42746fbca68a;hpb=4e385d6c884da886598589cb97c7d101473dfcf7;p=civicrm-core.git diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 0fbfed5d25..ddb881f571 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -178,7 +178,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * Set variables up before form is built * * @return void - * @access public */ public function preProcess() { $this->_eventId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); @@ -463,7 +462,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * Assign the minimal set of variables to the template * * @return void - * @access public */ public function assignToTemplate() { //process only primary participant params @@ -563,7 +561,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * @param bool $viewOnly * * @return void - * @access public */ public function buildCustom($id, $name, $viewOnly = FALSE) { if ($id) { @@ -725,7 +722,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * @param null $payment * * @return void - * @access public */ public function confirmPostProcess($contactID = NULL, $contribution = NULL, $payment = NULL) { // add/update contact information @@ -795,7 +791,8 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { if (array_key_exists('email-5', $this->_params)) { $mail = 'email-5'; - } else { + } + else { foreach ($this->_params as $name => $dontCare) { if (substr($name, 0, 5) == 'email') { $mail = $name; @@ -827,7 +824,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * @param int $contactID * * @return void - * @access public */ public static function addParticipant(&$form, $contactID) { if (empty($form->_params)) { @@ -929,10 +925,10 @@ WHERE v.option_group_id = g.id /* Calculate the total participant count as per params. * - * @param array $params user params. + * @param array $params + * User params. * * @return $totalCount total participant count. - * @access public */ /** * @param CRM_Core_Form $form @@ -1027,11 +1023,11 @@ WHERE v.option_group_id = g.id /* Format user submitted price set params. * Convert price set each param as an array. * - * @param $params an array of user submitted params. + * @param $params + * An array of user submitted params. * * * @return array $formatted, formatted price set params. - * @access public */ /** * @param CRM_Core_Form $form @@ -1077,11 +1073,11 @@ WHERE v.option_group_id = g.id /* Calculate total count for each price set options. * those are currently selected by user. * - * @param $form form object. + * @param $form + * Form object. * * * @return array $optionsCount, array of each option w/ count total. - * @access public */ /** * @param $form @@ -1405,4 +1401,3 @@ WHERE v.option_group_id = g.id } } } -