You are here

function pay_transaction::activity in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_transaction.inc \pay_transaction::activity()
1 call to pay_transaction::activity()
pay_transaction::pay_method_activities in includes/handlers/pay_transaction.inc
Return a list of all payment activities in this transaction's history, grouped by payment method.

File

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

Class

pay_transaction
@file A base class for payment transactions.

Code

function activity() {
  if (!isset($this->activity)) {
    $this->activity = array();
    $res = db_query("SELECT paid FROM {pay_activity} WHERE pxid = %d\n        ORDER BY paid", $this->pxid);
    while ($paid = db_result($res)) {
      $this->activity[$paid] = pay_load('pay_activity', $paid);
    }
  }
  return $this->activity;
}