/**
* This class contains payment processor related functions.
*/
-class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProcessor
-{
+class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProcessor {
/**
* Static holder for the default payment processor
*/
'entity_table' => 'civicrm_payment_processor',
'entity_id' => $processor->id,
'account_relationship' => $relationTypeId,
- 'financial_account_id' => $params['financial_account_id']
+ 'financial_account_id' => $params['financial_account_id'],
);
CRM_Financial_BAO_FinancialTypeAccount::add($values);
}
* @param bool $is_active
* Value we want to set the is_active field.
*
- * @return Object DAO object on sucess, null otherwise
+ * @return Object
+ * DAO object on sucess, null otherwise
*
* @static
*/
*
* @param NULL
*
- * @return object The default payment processor object on success,
+ * @return object
+ * The default payment processor object on success,
* null otherwise
* @static
*/
* @param string $mode
* Payment mode ie test or live.
*
- * @return array associated array with payment processor related fields
+ * @return array
+ * associated array with payment processor related fields
* @static
*/
public static function getPayment($paymentProcessorID, $mode) {
* @param string $mode
* Payment mode ie test or live.
*
- * @return array associated array with payment processor related fields
+ * @return array
+ * associated array with payment processor related fields
* @static
*/
public static function buildPayment($dao, $mode) {
*
* @param array $ids
*
- * @return array available processors
+ * @return array
+ * available processors
*/
public static function getPaymentProcessors($capabilities = array(), $ids = array()) {
$mode = NULL;
* @param string $type
* Type of payment information to be retrieved.
*
- * @return int / array / object based on type
+ * @return int
+ * / array / object based on type
* @static
*/
public static function getProcessorForEntity($entityID, $component = 'contribute', $type = 'id') {