function pay_activity::history in Pay 6
Same name and namespace in other branches
- 7 includes/handlers/pay_activity.inc \pay_activity::history()
Return a history of all payment activities related to this activity. This is any activity for the current transaction that's using the same payment method.
File
- includes/
handlers/ pay_activity.inc, line 131 - A base class for payment activities.
Class
- pay_activity
- @file A base class for payment activities.
Code
function history() {
if (!isset($this->history)) {
$history = $this
->pay_transaction()
->pay_method_activities($this->pmid);
$this->history = is_array($history) ? $history : array();
}
return $this->history;
}