X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPremium.php;h=957d5361a3207ce6b0d8b15744152b1e0b9911af;hb=3429fd2207d9bb352e478d856d5047e4ec597e5d;hp=f5edcd534400128a7663c072c70994383b58fc86;hpb=7d9f50a272a2892bbba9bb156a24d09533592910;p=civicrm-core.git diff --git a/api/v3/Premium.php b/api/v3/Premium.php index f5edcd5344..957d5361a3 100644 --- a/api/v3/Premium.php +++ b/api/v3/Premium.php @@ -2,9 +2,9 @@ /* +--------------------------------------------------------------------+ - | CiviCRM version 4.4 | + | CiviCRM version 4.5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2013 | + | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -41,6 +41,9 @@ * {@getfields premium_create} * @example premiumCreate.php * + * @param $params + * + * @throws API_Exception * @return array of newly created premium property values. * @access public */ @@ -55,6 +58,8 @@ function civicrm_api3_premium_create($params) { * {@getfields premium_get} * @example premiumCreate.php * + * @param $params + * * @return array of retrieved premium property values. * @access public */ @@ -69,6 +74,9 @@ function civicrm_api3_premium_get($params) { * {@getfields premium_delete} * @example premiumCreate.php * + * @param $params + * + * @throws API_Exception * @return array of deleted values. * @access public */ @@ -80,12 +88,12 @@ function civicrm_api3_premium_delete($params) { * return field specification specific to get requests */ function _civicrm_api3_premium_get_spec(&$params) { - $params['premium_active']['api.aliases'] = array('is_active'); + $params['premiums_active']['api.aliases'] = array('is_active'); } /** * return field specification specific to create requests */ function _civicrm_api3_premium_create_spec(&$params) { - $params['premium_active']['api.aliases'] = array('is_active'); + $params['premiums_active']['api.aliases'] = array('is_active'); }