X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPledge.php;h=1e3c340474e693eae4a702e11c23a96f331fa4af;hb=5d579f729adcfbdf476b4bfd36754b4f9671fd09;hp=19c7c9bc9ec70771425d52491a61f5c9a39b750c;hpb=51daafaadd025703b2f8d6e3d27898e3768908f9;p=civicrm-core.git diff --git a/api/v3/Pledge.php b/api/v3/Pledge.php index 19c7c9bc9e..1e3c340474 100644 --- a/api/v3/Pledge.php +++ b/api/v3/Pledge.php @@ -1,8 +1,7 @@ $params['id'] + 'id' => $params['id'], ), $params, 'pledge', 'delete'); } else { @@ -84,7 +85,7 @@ function civicrm_api3_pledge_delete($params) { } /** - * @param $params + * @param array $params */ function _civicrm_api3_pledge_delete_spec(&$params) { // set as not required as pledge_id also acceptable & no either/or std yet @@ -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,17 +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 array $values + * The reformatted properties that we can use internally. * - * @param bool $create - * - * @internal param array $params Associative array of property name/value - * pairs to insert in new contact. - * @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)) { @@ -199,4 +197,3 @@ function _civicrm_api3_pledge_format_params(&$values, $create = FALSE) { $values['scheduled_date'] = $values['start_date']; } } -