/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* @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');
}
/**
/**
* 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');
}
/**