Public Member Functions | |
getObjectFororderid () | |
hasProperty ($p) | |
overridden by woc, returns true if the property exists | |
isAuditable () | |
returns whether this is an auditable table | |
newKey () | |
generate a new primary key value for insert and marks the object as not yet in the DB; the default sets the primary key to NULL if it is a sequence; call the original first if you overwrite it | |
Static Public Member Functions | |
static | getFromDB ($voucherid) |
static | newRow (array $data=array()) |
static | selectFromDB ($where="", $orderby="") |
Protected Member Functions | |
__construct (array $data, $isfromdb) | |
createAudit () | |
overridden by woc, if this an auditable table; used in insert and update | |
resetAudit () | |
overridden in auditable implementations: resets the audit state |
WTvoucher::__construct | ( | array $ | data, | |
$ | isfromdb | |||
) | [protected] |
WTvoucher::createAudit | ( | ) | [protected] |
static WTvoucher::getFromDB | ( | $ | voucherid | ) | [static] |
References $db.
Referenced by WOOrder::deductVoucher(), WOOrder::emptyVoucher(), WTrGetVoucher::handleRequest(), WOOrder::payForOrderVoucher(), and WOOrder::returnTicketVoucher().
WTvoucher::getObjectFororderid | ( | ) |
References $db, and selectFromDB().
WTvoucher::hasProperty | ( | $ | c | ) |
overridden by woc, returns true if the property exists
Reimplemented from WobTable.
WTvoucher::isAuditable | ( | ) |
returns whether this is an auditable table
Reimplemented from WobTable.
WTvoucher::newKey | ( | ) |
generate a new primary key value for insert and marks the object as not yet in the DB; the default sets the primary key to NULL if it is a sequence; call the original first if you overwrite it
Reimplemented from WobTable.
References BarcodeTable::getNewVoucherId().
static WTvoucher::newRow | ( | array $ | data = array() |
) | [static] |
References WobTable::$data.
Referenced by createAudit().
WTvoucher::resetAudit | ( | ) | [protected] |
overridden in auditable implementations: resets the audit state
Reimplemented from WobTable.
static WTvoucher::selectFromDB | ( | $ | where = "" , |
|
$ | orderby = "" | |||
) | [static] |
References $db.
Referenced by WOOrder::cancelOrder(), WOOrderAbstract::fromTableorder(), getObjectFororderid(), and WOOrderInfo::getTotalPriceFromDB().