You are here

function pay_transaction::state in Pay 6

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

Return the current state of this transaction.

2 calls to pay_transaction::state()
pay_transaction::update_status in includes/handlers/pay_transaction.inc
pay_transaction::valid_action in includes/handlers/pay_transaction.inc
Determine whether an action is valid and appropriate for this transaction.

File

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

Class

pay_transaction
@file A base class for payment transactions.

Code

function state($title = FALSE) {
  if (!$this->state) {
    $this
      ->set_state();
  }
  if ($title) {
    $info = $this
      ->states($this->state);
    return $info['title'];
  }
  else {
    return $this->state;
  }
}