CRM-15905 fix - API: problem sorting contacts on ID
[civicrm-core.git] / api / v3 / Premium.php
index 46f791561686bb2371f303070cd0f910d09bc5ba..75d004343f4129013d6bf4a4aaeb225e05b9f5c5 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 premium functions
  *
  * @package CiviCRM_APIv3
  * @subpackage API_premium
- *
  */
 
 /**
- * Save a premium
- *
- * Allowed @params array keys are:
- * {@getfields premium_create}
- * @example premiumCreate.php
+ * Save a premium.
  *
  * @param array $params
  *
  * @throws API_Exception
  * @return array
  *   Array of newly created premium property values.
- * @access public
  */
 function civicrm_api3_premium_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * Get a premium
- *
- * Allowed @params array keys are:
- * {@getfields premium_get}
- * @example premiumCreate.php
+ * Get a premium.
  *
  * @param array $params
  *
  * @return array
  *   Array of retrieved premium property values.
- * @access public
  */
 function civicrm_api3_premium_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * Delete a premium
- *
- * Allowed @params array keys are:
- * {@getfields premium_delete}
- * @example premiumCreate.php
+ * Delete a premium.
  *
  * @param array $params
  *
  * @throws API_Exception
  * @return array
  *   Array of deleted values.
- * @access public
  */
 function civicrm_api3_premium_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * return field specification specific to get requests
+ * Return field specification specific to get requests.
+ *
+ * @param array $params
  */
 function _civicrm_api3_premium_get_spec(&$params) {
   $params['premiums_active']['api.aliases'] = array('is_active');
 }
 
 /**
- * return field specification specific to create requests
+ * Return field specification specific to create requests.
+ *
+ * @param array $params
  */
 function _civicrm_api3_premium_create_spec(&$params) {
   $params['premiums_active']['api.aliases'] = array('is_active');