* @param int $paymentProcessorID
* Id of the payment processor ID in use.
*
+ * @deprecated
+ *
* @return bool
*/
public function validateData($input, &$ids, &$objects, $required = TRUE, $paymentProcessorID = NULL) {
-
+ CRM_Core_Error::deprecatedFunctionWarning('unused');
// Check if the contribution exists
// make sure contribution exists and is valid
$contribution = new CRM_Contribute_BAO_Contribution();
$contribution = &$objects['contribution'];
$ids['paymentProcessor'] = $paymentProcessorID;
$success = $contribution->loadRelatedObjects($input, $ids);
- if ($required && empty($contribution->_relatedObjects['paymentProcessor'])) {
- throw new CRM_Core_Exception("Could not find payment processor for contribution record: " . $contribution->id);
- }
$objects = array_merge($objects, $contribution->_relatedObjects);
return $success;
}