| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_Contribute_BAO_ContributionRecur extends CRM_Contribute_DAO_ContributionRecur {
/**
- * Create recurring contribution
+ * Create recurring contribution.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
}
/**
- * Takes an associative array and creates a contribution object
+ * Takes an associative array and creates a contribution object.
*
* the function extract all the params it needs to initialize the create a
* contribution object. the params array could contain additional unused name/value
* (reference ) an assoc array of name/value pairs.
*
* @return CRM_Contribute_BAO_Contribution
- * @static
* @todo move hook calls / extended logic to create - requires changing calls to call create not add
*/
public static function add(&$params) {
}
/**
- * Check if there is a recurring contribution with the same trxn_id or invoice_id
+ * Check if there is a recurring contribution with the same trxn_id or invoice_id.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
* @param array $duplicates
* (reference ) store ids of duplicate contribs.
*
- * @return boolean
+ * @return bool
* true if duplicate, false otherwise
- * @static
*/
public static function checkDuplicate($params, &$duplicates) {
$id = CRM_Utils_Array::value('id', $params);
*
* @return array
* an array of recurring ids count
- * @static
*/
public static function getCount(&$ids) {
$recurID = implode(',', $ids);
* @param int $recurId
*
* @return bool
- * @static
*/
public static function deleteRecurContribution($recurId) {
$result = FALSE;
* @param array $activityParams
*
* @return bool
- * @static
*/
public static function cancelRecurContribution($recurId, $objects, $activityParams = array()) {
if (!$recurId) {
}
/**
- * Get list of recurring contribution of contact Ids
+ * Get list of recurring contribution of contact Ids.
*
* @param int $contactId
* Contact ID.
* @return array
* list of recurring contribution fields
*
- * @static
*/
public static function getRecurContributions($contactId) {
$params = array();
}
}
}
+
}