}
if (!empty($params['target_contact_id'])) {
- if (is_array($params['target_contact_id']) && !CRM_Utils_array::crmIsEmptyArray($params['target_contact_id'])) {
+ if (is_array($params['target_contact_id']) && !CRM_Utils_Array::crmIsEmptyArray($params['target_contact_id'])) {
$msgs[] = "target=" . implode(',', $params['target_contact_id']);
// take only first target
// will be used for recently viewed display
foreach ($vvalue as $vkey => $vval) {
foreach ($selectedContacts as $dnt => $val) {
- if (array_key_exists($val, $params) && !CRM_Utils_array::crmIsEmptyArray($params[$val])) {
+ if (array_key_exists($val, $params) && !CRM_Utils_Array::crmIsEmptyArray($params[$val])) {
if ($val == 'contact_check') {
$mailStatus = ts("A copy of the activity has also been sent to selected contacts(s).");
}
if (CRM_Utils_Array::value('pledge_installments', $fields) == NULL) {
$errors['pledge_installments'] = ts('Pledge Installments is required field.');
}
- elseif (CRM_Utils_array::value('pledge_installments', $fields) == 1) {
+ elseif (CRM_Utils_Array::value('pledge_installments', $fields) == 1) {
$errors['pledge_installments'] = ts('Pledges consist of multiple scheduled payments. Select one-time contribution if you want to make your gift in a single payment.');
}
- elseif (CRM_Utils_array::value('pledge_installments', $fields) == 0) {
+ elseif (CRM_Utils_Array::value('pledge_installments', $fields) == 0) {
$errors['pledge_installments'] = ts('Pledge Installments field must be > 1.');
}
}
if (CRM_Utils_Array::value('pledge_frequency_interval', $fields) == NULL) {
$errors['pledge_frequency_interval'] = ts('Pledge Frequency Interval. is required field.');
}
- elseif (CRM_Utils_array::value('pledge_frequency_interval', $fields) == 0) {
+ elseif (CRM_Utils_Array::value('pledge_frequency_interval', $fields) == 0) {
$errors['pledge_frequency_interval'] = ts('Pledge frequency interval field must be > 0');
}
}
$this->assign('bank_account_number', $this->_params['bank_account_number']);
}
else {
- $date = CRM_Utils_Date::format(CRM_Utils_array::value('credit_card_exp_date', $this->_params));
+ $date = CRM_Utils_Date::format(CRM_Utils_Array::value('credit_card_exp_date', $this->_params));
$date = CRM_Utils_Date::mysqlToIso($date);
$this->assign('credit_card_exp_date', $date);
$this->assign('credit_card_number',
- CRM_Utils_System::mungeCreditCard(CRM_Utils_array::value('credit_card_number', $this->_params))
+ CRM_Utils_System::mungeCreditCard(CRM_Utils_Array::value('credit_card_number', $this->_params))
);
}
}
}
// CRM-15681 merge sub_types
- if ($other_sub_types = CRM_Utils_array::value('contact_sub_type', $migrationInfo['other_details'])) {
- if ($main_sub_types = CRM_Utils_array::value('contact_sub_type', $migrationInfo['main_details'])) {
+ if ($other_sub_types = CRM_Utils_Array::value('contact_sub_type', $migrationInfo['other_details'])) {
+ if ($main_sub_types = CRM_Utils_Array::value('contact_sub_type', $migrationInfo['main_details'])) {
$submitted['contact_sub_type'] = array_unique(array_merge($main_sub_types, $other_sub_types));
}
else {
* $specialValues
*/
public static function getSpecialValues($contact) {
- $preferred_communication_method = CRM_Utils_array::value('preferred_communication_method', $contact);
+ $preferred_communication_method = CRM_Utils_Array::value('preferred_communication_method', $contact);
$value = empty($preferred_communication_method) ? array() : $preferred_communication_method;
$specialValues = array(
'preferred_communication_method' => $value,
//for displaying relationship type filter
if ($value['title'] == 'Relationship') {
$relTypes = CRM_Core_PseudoConstant::relationshipType();
- $op = CRM_Utils_array::value('relationship_type_id_op', $this->_params) == 'in' ?
+ $op = CRM_Utils_Array::value('relationship_type_id_op', $this->_params) == 'in' ?
ts('Is one of') . ' ' : ts('Is not one of') . ' ';
$relationshipTypes = array();
foreach ($this->_params['relationship_type_id_value'] as $relationship) {
$requestParams = CRM_Utils_Request::exportValues();
// Get the function name being called from the q parameter in the query string
- $q = CRM_Utils_array::value('q', $requestParams);
+ $q = CRM_Utils_Array::value('q', $requestParams);
// or for the rest interface, from fnName
- $r = CRM_Utils_array::value('fnName', $requestParams);
+ $r = CRM_Utils_Array::value('fnName', $requestParams);
if (!empty($r)) {
$q = $r;
}
- $entity = CRM_Utils_array::value('entity', $requestParams);
+ $entity = CRM_Utils_Array::value('entity', $requestParams);
if (empty($entity) && !empty($q)) {
$args = explode('/', $q);
// If the function isn't in the civicrm namespace, reject the request.
// or the api format (entity+action)
$args = array();
$args[0] = 'civicrm';
- $args[1] = CRM_Utils_array::value('entity', $requestParams);
- $args[2] = CRM_Utils_array::value('action', $requestParams);
+ $args[1] = CRM_Utils_Array::value('entity', $requestParams);
+ $args[2] = CRM_Utils_Array::value('action', $requestParams);
}
// Everyone should be required to provide the server key, so the whole
// first check for civicrm site key
if (!CRM_Utils_System::authenticateKey(FALSE)) {
$docLink = CRM_Utils_System::docURL2("Managing Scheduled Jobs", TRUE, NULL, NULL, NULL, "wiki");
- $key = CRM_Utils_array::value('key', $requestParams);
+ $key = CRM_Utils_Array::value('key', $requestParams);
if (empty($key)) {
return self::error("FATAL: mandatory param 'key' missing. More info at: " . $docLink);
}
*/
public function loadCMSBootstrap() {
$requestParams = CRM_Utils_Request::exportValues();
- $q = CRM_Utils_array::value('q', $requestParams);
+ $q = CRM_Utils_Array::value('q', $requestParams);
$args = explode('/', $q);
// Proceed with bootstrap for "?entity=X&action=Y"