You are here

function pay_form::pay_methods in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_form.inc \pay_form::pay_methods()
3 calls to pay_form::pay_methods()
pay_form::currency_list in includes/handlers/pay_form.inc
List of all currencies available for this form.
pay_form::pay_method_form in includes/handlers/pay_form.inc
pay_form::set_valid_actions in includes/handlers/pay_form.inc
Modify the list of payment actions that are valid for a given transaction.

File

includes/handlers/pay_form.inc, line 189
The base class for payment activities. All payment form classes should extend this.

Class

pay_form
@file The base class for payment activities. All payment form classes should extend this.

Code

function pay_methods() {
  $methods = array();
  foreach ($this->pay_methods as $pmid => $status) {
    if ($status && ($pay_method = pay_method_load($pmid))) {
      if ($pay_method
        ->access('default')) {
        $pay_method->pay_form = $this;
        $methods[$pmid] = $pay_method;
      }
    }
  }
  return $methods;
}