X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSurvey.php;h=9bd314aed34fef833303ae4a809460743cb3528b;hb=4846df9154866b0a33ee8ec7a1f48c65c77b670b;hp=a657f48c4bb8a5ae8f99e7177d3275729f3a2bcc;hpb=845bc17a66f2ef2ca7c819fbe99ec646f0d42634;p=civicrm-core.git diff --git a/api/v3/Survey.php b/api/v3/Survey.php index a657f48c4b..9bd314aed3 100644 --- a/api/v3/Survey.php +++ b/api/v3/Survey.php @@ -1,8 +1,7 @@ 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 * - * @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); } -