X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSurvey.php;h=bc12a4502f25f3f2df12dc74134ce02823b420e0;hb=048555566c0b1535f8e8cc802b0991399503319c;hp=ab7b8ca789edcdd56623c53b80c16da8ee84fe6d;hpb=e01a5ffed559ccb3a64fba29f0ca8964e00d3178;p=civicrm-core.git diff --git a/api/v3/Survey.php b/api/v3/Survey.php index ab7b8ca789..bc12a4502f 100644 --- a/api/v3/Survey.php +++ b/api/v3/Survey.php @@ -2,7 +2,7 @@ /* +--------------------------------------------------------------------+ - | CiviCRM version 4.5 | + | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ @@ -47,7 +47,7 @@ * @access public */ function civicrm_api3_survey_create($params) { - return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); + return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Survey'); } /** @@ -63,16 +63,16 @@ function _civicrm_api3_survey_create_spec(&$params) { /** * Returns array of surveys matching a set of one or more group properties * - * @param array $params (referance) Array of one or more valid + * @param array $params Array of one or more valid * property_name=>value pairs. If $params is set * as null, all surveys will be returned * - * @return array (referance) Array of matching surveys + * @return array API result Array of matching surveys * {@getfields survey_get} * @access public */ 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'); } /**