X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSurvey.php;h=9bd314aed34fef833303ae4a809460743cb3528b;hb=b0a317143b2c1a6aee3b6bc99ef31532881f652e;hp=7e6a17d1dc3358c566019d6cff788c3ab899eb5b;hpb=e7f7aef7265627c99d27b5e9cecdfe5d3e50f7de;p=civicrm-core.git diff --git a/api/v3/Survey.php b/api/v3/Survey.php index 7e6a17d1dc..9bd314aed3 100644 --- a/api/v3/Survey.php +++ b/api/v3/Survey.php @@ -1,5 +1,4 @@ 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); } -