);
$menuLinks[] = sprintf('<a href="%s" class="action-item crm-hover-button" title="%s">%s</a>',
$urlPath,
- CRM_Utils_Array::value('title', $link),
+ $link['title'] ?? NULL,
$link['title']
);
}
$params['created_date'] = date('YmdHis');
}
// format params
- $params['is_active'] = CRM_Utils_Array::value('is_active', $params, FALSE);
+ $params['is_active'] = $params['is_active'] ?? FALSE;
$params['last_modified_id'] = $session->get('userID');
$params['last_modified_date'] = date('YmdHis');
$result = self::submit($params, $this);
$params['last_modified_id'] = $session->get('userID');
$params['last_modified_date'] = date('YmdHis');
- $params['is_share'] = CRM_Utils_Array::value('is_share', $params, FALSE);
+ $params['is_share'] = $params['is_share'] ?? FALSE;
if ($this->_surveyId) {
$params['created_date'] = date('YmdHis');
}
- $params['bypass_confirm'] = CRM_Utils_Array::value('bypass_confirm', $params, 0);
- $params['is_active'] = CRM_Utils_Array::value('is_active', $params, 0);
- $params['is_default'] = CRM_Utils_Array::value('is_default', $params, 0);
+ $params['bypass_confirm'] = $params['bypass_confirm'] ?? 0;
+ $params['is_active'] = $params['is_active'] ?? 0;
+ $params['is_default'] = $params['is_default'] ?? 0;
$params['custom'] = CRM_Core_BAO_CustomField::postProcess($params, $this->getEntityId(), $this->getDefaultEntity());
$params['created_date'] = date('YmdHis');
}
- $params['is_active'] = CRM_Utils_Array::value('is_active', $params, 0);
- $params['is_default'] = CRM_Utils_Array::value('is_default', $params, 0);
+ $params['is_active'] = $params['is_active'] ?? 0;
+ $params['is_default'] = $params['is_default'] ?? 0;
$params['custom'] = CRM_Core_BAO_CustomField::postProcess($params, $this->getEntityId(), $this->getDefaultEntity());
TRUE, FALSE,
FALSE, FALSE,
FALSE,
- CRM_Utils_Array::value('whereClause', $voterClause),
+ $voterClause['whereClause'] ?? NULL,
NULL,
- CRM_Utils_Array::value('fromClause', $voterClause)
+ $voterClause['fromClause'] ?? NULL
);
$iTotal = $searchCount;
FALSE, FALSE,
FALSE, FALSE,
FALSE,
- CRM_Utils_Array::value('whereClause', $voterClause),
+ $voterClause['whereClause'] ?? NULL,
$sortOrder,
- CRM_Utils_Array::value('fromClause', $voterClause)
+ $voterClause['fromClause'] ?? NULL
);
while ($result->fetch()) {
$contactID = $result->contact_id;