X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSurvey.php;h=2487134834492ac020da629929c4dfd86aa3d31f;hb=66ea266254f36e0c41bea02df9bf64160fef1a0e;hp=7e6a17d1dc3358c566019d6cff788c3ab899eb5b;hpb=347185d7709adf00659d042b2fa98b93f03f2672;p=civicrm-core.git diff --git a/api/v3/Survey.php b/api/v3/Survey.php index 7e6a17d1dc..2487134834 100644 --- a/api/v3/Survey.php +++ b/api/v3/Survey.php @@ -1,10 +1,9 @@ value pairs. If $params is set - * as null, all surveys will be returned + * @param array $params + * Array of properties. If empty, all records will be returned. * - * @return array API result Array of matching surveys - * {@getfields survey_get} - * @access public + * @return array + * API result Array of matching surveys */ function civicrm_api3_survey_get($params) { - return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params); + return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Survey'); } /** - * delete an existing survey + * Delete an existing survey. * - * This method is used to delete any existing survey. id of the group - * to be deleted is required field in $params array + * This method is used to delete any existing survey given its id. * - * @param array $params array containing id of the group - * to be deleted + * @param array $params + * [id] * - * @return array api result array - * {@getfields survey_delete} - * @access public + * @return array + * api result array */ function civicrm_api3_survey_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } -