projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3317 from eileenmcnaughton/CRM-14197-postprocesfn
[civicrm-core.git]
/
api
/
v3
/
Contact.php
diff --git
a/api/v3/Contact.php
b/api/v3/Contact.php
index 438544a5aeb9fd7999ec8de0c38ab234040d8e2f..4ec440ef9b27c2766ff28e20de00a8fb8ff77eea 100644
(file)
--- a/
api/v3/Contact.php
+++ b/
api/v3/Contact.php
@@
-154,6
+154,11
@@
function civicrm_api3_contact_get($params) {
return civicrm_api3_create_success($contacts, $params, 'contact');
}
return civicrm_api3_create_success($contacts, $params, 'contact');
}
+/**
+ * @param $params
+ *
+ * @return int
+ */
function civicrm_api3_contact_getcount($params) {
$options = array();
_civicrm_api3_contact_get_supportanomalies($params, $options);
function civicrm_api3_contact_getcount($params) {
$options = array();
_civicrm_api3_contact_get_supportanomalies($params, $options);
@@
-286,6
+291,17
@@
function civicrm_api3_contact_delete($params) {
}
}
+/**
+ * @param $params
+ * @param bool $dupeCheck
+ * @param bool $dupeErrorArray
+ * @param bool $obsoletevalue
+ * @param null $dedupeRuleGroupID
+ *
+ * @return null
+ * @throws API_Exception
+ * @throws CiviCRM_API3_Exception
+ */
function _civicrm_api3_contact_check_params( &$params, $dupeCheck = true, $dupeErrorArray = false, $obsoletevalue = true, $dedupeRuleGroupID = null )
{
function _civicrm_api3_contact_check_params( &$params, $dupeCheck = true, $dupeErrorArray = false, $obsoletevalue = true, $dedupeRuleGroupID = null )
{
@@
-396,11
+412,10
@@
function _civicrm_api3_contact_update($params, $contactID = NULL) {
/**
* Validate the addressee or email or postal greetings
*
/**
* Validate the addressee or email or postal greetings
*
- * @param
$params
Associative array of property name/value
+ * @param
array $params
Associative array of property name/value
* pairs to insert in new contact.
*
* @throws API_Exception
* pairs to insert in new contact.
*
* @throws API_Exception
- * @return array (reference ) null on success, error message otherwise
*
* @access public
*/
*
* @access public
*/
@@
-857,12
+872,21
@@
function civicrm_api3_contact_merge($params) {
}
}
}
}
+/**
+ * @param $params
+ */
function _civicrm_api3_contact_proximity_spec(&$params) {
$params['latitude']['api.required'] = 1;
$params['longitude']['api.required'] = 1;
$params['unit']['api.default'] = 'meter';
}
function _civicrm_api3_contact_proximity_spec(&$params) {
$params['latitude']['api.required'] = 1;
$params['longitude']['api.required'] = 1;
$params['unit']['api.default'] = 'meter';
}
+/**
+ * @param $params
+ *
+ * @return array
+ * @throws Exception
+ */
function civicrm_api3_contact_proximity($params) {
$latitude = CRM_Utils_Array::value('latitude', $params);
$longitude = CRM_Utils_Array::value('longitude', $params);
function civicrm_api3_contact_proximity($params) {
$latitude = CRM_Utils_Array::value('latitude', $params);
$longitude = CRM_Utils_Array::value('longitude', $params);