You are here

function pay_transaction::available_actions in Pay 7

Same name and namespace in other branches
  1. 6 includes/handlers/pay_transaction.inc \pay_transaction::available_actions()

Return an array of actions that are available for this transaction in its current state.

Return value

array from valid_actions(), filtered by applicability.

File

includes/handlers/pay_transaction.inc, line 149
A base class for payment transactions.

Class

pay_transaction
@file A base class for payment transactions.

Code

function available_actions() {
  $actions = $this
    ->valid_actions();
  foreach ($actions as $action => $info) {
    if (!$this
      ->valid_action($action)) {
      unset($actions[$action]);
    }
  }
  return $actions;
}