You are here

function pay_form::total in Pay 6

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

Overrides pay::total

File

includes/handlers/pay_form.inc, line 422
The base class for payment activities. All payment form classes should extend this.

Class

pay_form
@file The base class for payment activities. All payment form classes should extend this.

Code

function total() {
  return (double) db_result(db_query("SELECT SUM(total) as total FROM {pay_transaction} WHERE pfid = %d", $this->pfid));
}