You are here

function pay_form::transaction_count in Pay 7

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

File

includes/handlers/pay_form.inc, line 468
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 transaction_count() {
  return (int) db_query("SELECT COUNT(*) FROM {pay_transaction} WHERE pfid = :pfid", array(
    ':pfid' => $this->pfid,
  ))
    ->fetchField();
}