}
if (isset($defaults['start_date'])) {
- list($defaults['start_date'],
- $defaults['start_date_time']
- ) = CRM_Utils_Date::setDateDefaults($defaults['start_date'],
- 'activityDateTime'
- );
+ list($defaults['start_date'], $defaults['start_date_time'])
+ = CRM_Utils_Date::setDateDefaults($defaults['start_date'], 'activityDateTime');
}
else {
- list($defaults['start_date'],
- $defaults['start_date_time']
- ) = CRM_Utils_Date::setDateDefaults();
+ list($defaults['start_date'], $defaults['start_date_time'])
+ = CRM_Utils_Date::setDateDefaults();
}
if (isset($defaults['end_date'])) {
- list($defaults['end_date'],
- $defaults['end_date_time']
- ) = CRM_Utils_Date::setDateDefaults($defaults['end_date'],
- 'activityDateTime'
- );
+ list($defaults['end_date'], $defaults['end_date_time'])
+ = CRM_Utils_Date::setDateDefaults($defaults['end_date'], 'activityDateTime');
}
if (!isset($defaults['is_active'])) {
CRM_Utils_Hook::pre('create', 'GroupContact', $groupId, $contactIds);
- list($numContactsAdded,
- $numContactsNotAdded
- ) = self::bulkAddContactsToGroup($contactIds,
- $groupId,
- $method,
- $status,
- $tracking
- );
+ list($numContactsAdded, $numContactsNotAdded)
+ = self::bulkAddContactsToGroup($contactIds, $groupId, $method, $status, $tracking);
// also reset the acl cache
$config = CRM_Core_Config::singleton();
// check logged in user permission
self::checkUserPermission($this);
- list($displayName, $contactImage,
- $contactType, $contactSubtype, $contactImageUrl
- ) = self::getContactDetails($this->_contactId);
+ list($displayName, $contactImage, $contactType, $contactSubtype, $contactImageUrl) = self::getContactDetails($this->_contactId);
$this->assign('displayName', $displayName);
$this->set('contactType', $contactType);
) = CRM_Contact_BAO_Contact::getDisplayAndImage($contactId,
TRUE,
TRUE
- );
+ );
}
/**
}
if (empty($defaults['trxn_date']) && empty($defaults['trxn_date_time'])) {
- list($defaults['trxn_date'],
- $defaults['trxn_date_time']
- ) = CRM_Utils_Date::setDateDefaults(
- CRM_Utils_Array::value('register_date', $defaults), 'activityDateTime'
- );
+ list($defaults['trxn_date'], $defaults['trxn_date_time'])
+ = CRM_Utils_Date::setDateDefaults(
+ CRM_Utils_Array::value('register_date', $defaults),
+ 'activityDateTime'
+ );
}
if ($this->_refund) {
$dates = array('receive_date', 'receipt_date', 'cancel_date', 'thankyou_date');
foreach ($dates as $key) {
if (!empty($defaults[$key])) {
- list($defaults[$key],
- $defaults[$key . '_time']
- ) = CRM_Utils_Date::setDateDefaults(CRM_Utils_Array::value($key, $defaults),
- 'activityDateTime'
- );
+ list($defaults[$key], $defaults[$key . '_time'])
+ = CRM_Utils_Date::setDateDefaults(CRM_Utils_Array::value($key, $defaults), 'activityDateTime');
}
}
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
if ($returnCode == self::DUPLICATE) {
if ($returnCode == self::MULTIPLE_DUPE) {
/* TODO: multi-dupes should be counted apart from singles
- * on non-skip action */
+ * on non-skip action */
}
$this->_duplicateCount++;
$recordNumber = $this->_lineCount;
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
- +------- -------------------------------------------------------------+
-*/
+ +--------------------------------------------------------------------+
+ */
/**
*
self::$_columnHeaders = array_merge($pre, self::$_columnHeaders);
}
if ($this->_includeSoftCredits) {
- self::$_columnHeaders
- = array_merge(
+ self::$_columnHeaders = array_merge(
self::$_columnHeaders,
array(
array(
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
// Not a real field in this entity
case 'world_region':
return CRM_Core_PseudoConstant::worldRegion();
-
- break;
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}
}
/* Retrieve the session values from the cache and populate the $_SESSION array
- *
- * @param array $names
- * Array of session values that should be persisted.
- * This is either a form name + qfKey or just a form name
- * (in the case of profile)
- *
- * @return void
- */
+ *
+ * @param array $names
+ * Array of session values that should be persisted.
+ * This is either a form name + qfKey or just a form name
+ * (in the case of profile)
+ *
+ * @return void
+ */
/**
* @param string $names
$ip = (isset($_SERVER['SERVER_ADDR']) &&
$_SERVER['SERVER_ADDR'] != '127.0.0.1') ? $_SERVER['SERVER_ADDR'] : (
isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '127.0.0.1'
- );
+ );
$data = array();
$session = CRM_Core_Session::singleton();
$defaults['approval_req_text'] = CRM_Utils_Array::value('approval_req_text', $defaults, ts('Participation in this event requires approval. Submit your registration request here. Once approved, you will receive an email with a link to a web page where you can complete the registration process.'));
if (!empty($defaults['registration_start_date'])) {
- list($defaults['registration_start_date'],
- $defaults['registration_start_date_time']
- ) = CRM_Utils_Date::setDateDefaults($defaults['registration_start_date'],
- 'activityDateTime'
- );
+ list($defaults['registration_start_date'], $defaults['registration_start_date_time'])
+ = CRM_Utils_Date::setDateDefaults($defaults['registration_start_date'], 'activityDateTime');
}
if (!empty($defaults['registration_end_date'])) {
- list($defaults['registration_end_date'],
- $defaults['registration_end_date_time']
- ) = CRM_Utils_Date::setDateDefaults($defaults['registration_end_date'],
- 'activityDateTime'
- );
+ list($defaults['registration_end_date'], $defaults['registration_end_date_time'])
+ = CRM_Utils_Date::setDateDefaults($defaults['registration_end_date'], 'activityDateTime');
}
return $defaults;
}
}
- list($defaults[$this->_id]['register_date'],
- $defaults[$this->_id]['register_date_time']
- ) = CRM_Utils_Date::setDateDefaults(
- CRM_Utils_Array::value('register_date', $defaults[$this->_id]), 'activityDateTime'
- );
+ list($defaults[$this->_id]['register_date'], $defaults[$this->_id]['register_date_time'])
+ = CRM_Utils_Date::setDateDefaults(CRM_Utils_Array::value('register_date', $defaults[$this->_id]), 'activityDateTime');
//assign event and role id, this is needed for Custom data building
$sep = CRM_Core_DAO::VALUE_SEPARATOR;
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
$processors['values'][$processor['id']]['object'] = CRM_Core_Payment::singleton($mode, $processor);
}
/*
- CRM_Utils_Cache::singleton()->set($cacheKey, $processors);
+ CRM_Utils_Cache::singleton()->set($cacheKey, $processors);
*/
return $processors['values'];
}
$paymentProcessorType = new CRM_Financial_DAO_PaymentProcessorType();
$paymentProcessorType->copyValues($params);
- /*
+ /* @codingStandardsIgnoreStart
// adapted from CRM_Core_Extensions_Payment::install
foreach (array(
'class_name',
'billing_mode',
'is_recur',
'payment_type'
- ) as $trimmable) {
+ ) as $trimmable) {
if (isset($paymentProcessorType->{$trimmable})) {
$paymentProcessorType->{$trimmable} = trim($paymentProcessorType->{$trimmable});
}
}
- */
+ @codingStandardsIgnoreEnd */
if (isset($paymentProcessorType->billing_mode)) {
// ugh unidirectional manipulation
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing
+--------------------------------------------------------------------+
-*/
+ */
/**
*
);
/* Add all the members of groups excluded from this mailing to the temp
- * table */
+ * table */
$excludeSubGroup = "INSERT INTO X_$job_id (contact_id)
SELECT DISTINCT $g2contact.contact_id
$mailingGroup->query($excludeSubGroup);
/* Add all unsubscribe members of base group from this mailing to the temp
- * table */
+ * table */
$unSubscribeBaseGroup = "INSERT INTO X_$job_id (contact_id)
SELECT DISTINCT $g2contact.contact_id
$mailingGroup->query($unSubscribeBaseGroup);
/* Add all the (intended) recipients of an excluded prior mailing to
- * the temp table */
+ * the temp table */
$excludeSubMailing = "INSERT IGNORE INTO X_$job_id (contact_id)
SELECT DISTINCT $eq.contact_id
);
/* Get the group contacts, but only those which are not in the
- * exclusion temp table */
+ * exclusion temp table */
$query = "REPLACE INTO I_$job_id (email_id, contact_id)
(isset($dao->do_not_email) && $dao->do_not_email == 1)
) {
/* We already sent this mailing to $forward_email, or we should
- * never email this contact. Give up. */
+ * never email this contact. Give up. */
return $successfulForward;
}
);
/* Make a list of groups and a list of prior mailings that received
- * this mailing */
+ * this mailing */
$groups = array();
$mailings = array();
}
/* As long as we have prior mailings, find their groups and add to the
- * list */
+ * list */
while (!empty($mailings)) {
$do->query("
CRM_Utils_Hook::unsubscribeGroups('resubscribe', $mailing_id, $contact_id, $group_ids, $base_groups);
/* Now we have a complete list of recipient groups. Filter out all
- * those except smart groups and those that the contact belongs to */
+ * those except smart groups and those that the contact belongs to */
$do->query("
SELECT $group.id as group_id,
// & we should aim to move this function to the BAO layer in future.
// however, we can assume that the contact_id passed in by the batch
// function will be the recipient
- list(
- $form->_contributorDisplayName,
- $form->_contributorEmail
- ) = CRM_Contact_BAO_Contact_Location::getEmailDetails(
- $formValues['contact_id']
- );
+ list($form->_contributorDisplayName, $form->_contributorEmail)
+ = CRM_Contact_BAO_Contact_Location::getEmailDetails($formValues['contact_id']);
if (empty($form->_receiptContactId) || $isBatchProcess) {
$form->_receiptContactId = $formValues['contact_id'];
}