X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FUFMatch.php;h=a975f83d08eae5520d0fb7a2e55421b435297789;hb=39d06e3819ab796ce608503ee4aae0ac704cc111;hp=77359bc33288e703540556079996b84636a4ce1b;hpb=17d83a01db1059f95af45e3bd8898e353e52c02c;p=civicrm-core.git diff --git a/api/v3/UFMatch.php b/api/v3/UFMatch.php index 77359bc332..a975f83d08 100644 --- a/api/v3/UFMatch.php +++ b/api/v3/UFMatch.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -26,18 +26,13 @@ */ /** - * File for the CiviCRM APIv3 user framework group functions + * This api exposes CiviCRM user framework match. * * @package CiviCRM_APIv3 - * @subpackage API_UF - * - * @copyright CiviCRM LLC (c) 2004-2014 - * @version $Id: UFGroup.php 30171 2010-10-14 09:11:27Z mover $ - * */ /** - * get the contact_id given a uf_id or vice versa + * Get the contact_id given a uf_id or vice versa. * * @param array $params * @@ -48,27 +43,25 @@ function civicrm_api3_uf_match_get($params) { } /** - * Create or update a UF Match record + * Create or update a UF Match record. * * @param array $params - * Associative array of property. - * name/value pairs to insert in new 'survey' - * @example UFMatch.php Std Create example + * Array per getfields metadata. * * @return array - * api result array - * {@getfields uf_match_create} + * Api result array */ function civicrm_api3_uf_match_create($params) { return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /** - * Adjust Metadata for Create action + * Adjust Metadata for Create action. + * + * The metadata is used for setting defaults, documentation & validation. * - * The metadata is used for setting defaults, documentation & validation * @param array $params - * Array or parameters determined by getfields. + * Array of parameters determined by getfields. */ function _civicrm_api3_uf_match_create_spec(&$params) { $params['contact_id']['api.required'] = 1; @@ -77,16 +70,12 @@ function _civicrm_api3_uf_match_create_spec(&$params) { } /** - * Create or update a survey + * Delete a UF Match record. * * @param array $params - * Associative array of property. - * name/value pairs to insert in new 'survey' - * @example UFMatch.php Std Create example * * @return array - * api result array - * {@getfields uf_match_create} + * Api result array. */ function civicrm_api3_uf_match_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);