/**
* Handle the values in mapField mode
*
- * @param array $values the array of values belonging to this line
+ * @param array $values
+ * The array of values belonging to this line.
*
* @return boolean
*/
/**
* Handle the values in preview mode
*
- * @param array $values the array of values belonging to this line
+ * @param array $values
+ * The array of values belonging to this line.
*
- * @return boolean the result of this processing
+ * @return boolean
+ * the result of this processing
*/
public function preview(&$values) {
return $this->summary($values);
/**
* Handle the values in summary mode
*
- * @param array $values the array of values belonging to this line
+ * @param array $values
+ * The array of values belonging to this line.
*
- * @return boolean the result of this processing
+ * @return boolean
+ * the result of this processing
*/
public function summary(&$values) {
$erroneousField = NULL;
/**
* Handle the values in import mode
*
- * @param int $onDuplicate the code for what action to take on duplicates
- * @param array $values the array of values belonging to this line
+ * @param int $onDuplicate
+ * The code for what action to take on duplicates.
+ * @param array $values
+ * The array of values belonging to this line.
*
- * @return boolean the result of this processing
+ * @return boolean
+ * the result of this processing
*/
public function import($onDuplicate, &$values) {
$params[$key] = CRM_Utils_String::strtoboolstr($val);
}
}
- if($key == 'participant_register_date') {
+ if ($key == 'participant_register_date') {
CRM_Utils_Date::convertToDefaultDate($params, $dateType, 'participant_register_date');
$formatted['participant_register_date'] = CRM_Utils_Date::processDate($params['participant_register_date']);
}
if (!empty($formatted['fee_level'])) {
$otherParams = array(
'fee_label' => $formatted['fee_level'],
- 'event_id' => $newParticipant->event_id
+ 'event_id' => $newParticipant->event_id,
);
CRM_Price_BAO_LineItem::syncLineItems($newParticipant->id, 'civicrm_participant', $newParticipant->fee_amount, $otherParams);
}