| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @param array $values
* The array of values belonging to this line.
*
- * @return boolean
+ * @return bool
*/
public function mapField(&$values) {
return CRM_Import_Parser::VALID;
* @param array $values
* The array of values belonging to this line.
*
- * @return boolean the result of this processing
+ * @return bool
+ * the result of this processing
*/
public function preview(&$values) {
return $this->summary($values);
* @param array $values
* The array of values belonging to this line.
*
- * @return boolean the result of this processing
+ * @return bool
+ * the result of this processing
*/
public function summary(&$values) {
$erroneousField = NULL;
- $response = $this->setActiveFieldValues($values, $erroneousField);
+ $response = $this->setActiveFieldValues($values, $erroneousField);
$errorRequired = FALSE;
- $index = -1;
+ $index = -1;
if ($this->_eventIndex > -1 && $this->_eventTitleIndex > -1) {
array_unshift($values, ts('Select either EventID OR Event Title'));
else {
foreach ($val as $role) {
if (!CRM_Contact_Import_Parser_Contact::in_value(trim($role), $roleIDs)) {
- CRM_Contact_Import_Parser_Contact::addToErrorMsg('Participant Role', $errorMessage);
+ CRM_Contact_Import_Parser_Contact::addToErrorMsg('Participant Role', $errorMessage);
break;
}
}
* @param array $values
* The array of values belonging to this line.
*
- * @return boolean the result of this processing
+ * @return bool
+ * the result of this processing
*/
public function import($onDuplicate, &$values) {
if ($response != CRM_Import_Parser::VALID) {
return $response;
}
- $params = &$this->getActiveFieldParams();
- $session = CRM_Core_Session::singleton();
- $dateType = $session->get('dateTypes');
- $formatted = array('version' => 3);
+ $params = &$this->getActiveFieldParams();
+ $session = CRM_Core_Session::singleton();
+ $dateType = $session->get('dateTypes');
+ $formatted = array('version' => 3);
$customFields = CRM_Core_BAO_CustomField::getFields(CRM_Utils_Array::value('contact_type', $params));
// don't add to recent items, CRM-4399
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);
}
// Using new Dedupe rule.
$ruleParams = array(
'contact_type' => $this->_contactType,
- 'used' => 'Unsupervised',
+ 'used' => 'Unsupervised',
);
$fieldsArray = CRM_Dedupe_BAO_Rule::dedupeRuleFields($ruleParams);
if (is_array($newParticipant) && civicrm_error($newParticipant)) {
if ($onDuplicate == CRM_Import_Parser::DUPLICATE_SKIP) {
- $contactID = CRM_Utils_Array::value('contactID', $newParticipant);
+ $contactID = CRM_Utils_Array::value('contactID', $newParticipant);
$participantID = CRM_Utils_Array::value('participantID', $newParticipant);
- $url = CRM_Utils_System::url('civicrm/contact/view/participant',
+ $url = CRM_Utils_System::url('civicrm/contact/view/participant',
"reset=1&id={$participantID}&cid={$contactID}&action=view", TRUE
);
if (is_array($newParticipant['error_message']) &&
*
* @return void
*/
- public function fini() {}
+ public function fini() {
+ }
+
}