function pay_transaction::activity in Pay 7
Same name and namespace in other branches
- 6 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 294 - 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 = :pxid\n ORDER BY paid", array(
':pxid' => $this->pxid,
));
while ($paid = $res
->fetchField()) {
$this->activity[$paid] = pay_load_object('pay_activity', $paid);
}
}
return $this->activity;
}