X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPledge.php;h=1e3c340474e693eae4a702e11c23a96f331fa4af;hb=5d579f729adcfbdf476b4bfd36754b4f9671fd09;hp=cdc79d7cbc8c387bcc045630cec9a58f27e53b15;hpb=3beb999f86bc826d2b0b4f778aa32b3d1d0bc791;p=civicrm-core.git diff --git a/api/v3/Pledge.php b/api/v3/Pledge.php index cdc79d7cbc..1e3c340474 100644 --- a/api/v3/Pledge.php +++ b/api/v3/Pledge.php @@ -23,7 +23,7 @@ | 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 Pledge functions @@ -68,12 +68,10 @@ function civicrm_api3_pledge_create($params) { * @param array $params * Array included 'pledge_id' of pledge to delete. * - * @return boolean + * @return bool * true if success, else false - * @static - * {@getfields pledge_delete} + * {@getfields pledge_delete} * @example PledgeDelete.php - * @access public */ function civicrm_api3_pledge_delete($params) { if (CRM_Pledge_BAO_Pledge::deletePledge($params['id'])) { @@ -96,6 +94,7 @@ function _civicrm_api3_pledge_delete_spec(&$params) { /** * return field specification specific to get requests + * @param array $params */ function _civicrm_api3_pledge_get_spec(&$params) { $params['next_pay_date'] = array( @@ -112,6 +111,7 @@ function _civicrm_api3_pledge_get_spec(&$params) { /** * return field specification specific to get requests + * @param array $params */ function _civicrm_api3_pledge_create_spec(&$params) { @@ -132,9 +132,8 @@ function _civicrm_api3_pledge_create_spec(&$params) { * * @return array * array of pledges, if error an array with an error id and error message - * {@getfields pledge_get} + * {@getfields pledge_get} * @example PledgeGet.php - * @access public */ function civicrm_api3_pledge_get($params) { $mode = CRM_Contact_BAO_Query::MODE_PLEDGE; @@ -165,12 +164,9 @@ function _civicrm_api3_pledge_get_defaults() { * * @param array $values * The reformatted properties that we can use internally. - * @param bool $create * - * @return array|CRM_Error - * @access public */ -function _civicrm_api3_pledge_format_params(&$values, $create = FALSE) { +function _civicrm_api3_pledge_format_params(&$values) { // probably most of the below can be removed.... just needs a little more review if (array_key_exists('original_installment_amount', $values)) {