+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
- * File for the CiviCRM APIv3 group functions
+ * This api exposes CiviCRM recurring contributions.
*
* @package CiviCRM_APIv3
- * @subpackage API_ContributionRecur
- * @copyright CiviCRM LLC (c) 2004-2014
*/
/**
- * Create or update a contribution_recur
+ * Create or update a ContributionRecur.
*
* @param array $params
- * Associative array of property.
- * name/value pairs to insert in new 'contribution_recur'
- * @example ContributionRecurCreate.php Std Create example
+ * Array per getfields metadata.
*
* @return array
* api result array
}
/**
- * Adjust Metadata for Create action
+ * Adjust Metadata for Create action.
+ *
+ * The metadata is used for setting defaults, documentation & validation.
*
- * The metadata is used for setting defaults, documentation & validation
* @param array $params
- * Array or parameters determined by getfields.
+ * Array of parameters determined by getfields.
*/
function _civicrm_api3_contribution_recur_create_spec(&$params) {
$params['contact_id']['api.required'] = 1;
}
/**
- * Returns array of contribution_recurs matching a set of one or more group properties
+ * Returns array of contribution_recurs matching a set of one or more group properties.
*
* @param array $params
- * Array of one or more valid.
- * property_name=>value pairs. If $params is set
- * as null, all contribution_recurs will be returned
+ * Array of properties. If empty, all records will be returned.
*
* @return array
* API result Array of matching contribution_recurs
}
/**
- * Cancel a recurring contribution of existing contribution_recur.id
+ * Cancel a recurring contribution of existing ContributionRecur given its id.
*
* @param array $params
- * (reference) array containing id of the recurring contribution.
+ * Array containing id of the recurring contribution.
*
* @return bool
* returns true is successfully cancelled
}
/**
- * delete an existing contribution_recur
+ * Delete an existing ContributionRecur.
*
- * This method is used to delete any existing contribution_recur. id of the group
- * to be deleted is required field in $params array
+ * This method is used to delete an existing ContributionRecur given its id.
*
* @param array $params
- * Array containing id of the group.
- * to be deleted
+ * [id]
*
* @return array
* API result array