You are here

function pay_transaction::pay_method_activities in Pay 6

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

Return a list of all payment activities in this transaction's history, grouped by payment method.

2 calls to pay_transaction::pay_method_activities()
pay_transaction::do_action in includes/handlers/pay_transaction.inc
Perform an action on this transaction.
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 295
A base class for payment transactions.

Class

pay_transaction
@file A base class for payment transactions.

Code

function pay_method_activities($pmid = NULL) {
  $activities = array();
  foreach ($this
    ->activity() as $activity) {
    $activities[$activity->pmid][$activity->paid] = $activity;
  }
  if ($pmid) {
    return $activities[$pmid];
  }
  return $activities;
}