X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPledge.php;h=1e3c340474e693eae4a702e11c23a96f331fa4af;hb=5d579f729adcfbdf476b4bfd36754b4f9671fd09;hp=00d21ca87a283618ffc146ab470c8c26cf19bf93;hpb=64e59809d10c3ff342718a28f42983ec217dc282;p=civicrm-core.git diff --git a/api/v3/Pledge.php b/api/v3/Pledge.php index 00d21ca87a..1e3c340474 100644 --- a/api/v3/Pledge.php +++ b/api/v3/Pledge.php @@ -1,5 +1,4 @@ $params['id'] + 'id' => $params['id'], ), $params, 'pledge', 'delete'); } else { @@ -93,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( @@ -109,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) { @@ -124,12 +127,13 @@ function _civicrm_api3_pledge_create_spec(&$params) { /** * Retrieve a set of pledges, given a set of input params * - * @param array $params input parameters. Use interrogate for possible fields + * @param array $params + * Input parameters. Use interrogate for possible fields. * - * @return array array of pledges, if error an array with an error id and error message - * {@getfields pledge_get} + * @return array + * array of pledges, if error an array with an error id and error message + * {@getfields pledge_get} * @example PledgeGet.php - * @access public */ function civicrm_api3_pledge_get($params) { $mode = CRM_Contact_BAO_Query::MODE_PLEDGE; @@ -158,13 +162,11 @@ function _civicrm_api3_pledge_get_defaults() { * take the input parameter list as specified in the data model and * convert it into the same format that we use in QF and BAO object * - * @param array $values The reformatted properties that we can use internally - * @param bool $create + * @param array $values + * The reformatted properties that we can use internally. * - * @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)) { @@ -195,4 +197,3 @@ function _civicrm_api3_pledge_format_params(&$values, $create = FALSE) { $values['scheduled_date'] = $values['start_date']; } } -