![]() |
Concrete class for the basic transaction. More...
Public Member Functions | |
acceptByAccount ($account_id) | |
Implements CesBankTransactionInterface::acceptByAccount(). More... | |
apply () | |
Applies, or commits, a basic transaction, or sets state to error. More... | |
check () | |
Checks if this transaction can be applied and updates the state. More... | |
deleteExtraData () | |
Delete object data. More... | |
getAmount (CesBankCurrency $currency=NULL) | |
Get Amount. More... | |
getConcept () | |
TODO: document. More... | |
getCreated () | |
Gets the creation timestamp. More... | |
getFromAccountName () | |
TODO: document. More... | |
getId () | |
Get Id. More... | |
getLog ($state) | |
TODO: document. More... | |
getParent () | |
The parent object for those objects using the decorator pattern. More... | |
getRecord () | |
Return object record. More... | |
getState () | |
TODO: document. More... | |
getToAccountName () | |
TODO: document. More... | |
getUser () | |
TODO: document. More... | |
log (array $messages) | |
TODO: document. More... | |
revoke () | |
Revokes a basic transaction from both accounts. More... | |
saveExtraData () | |
Save object data. More... | |
setState ($state) | |
Changes the transaction state. More... | |
trigger () | |
TODO: document. More... | |
Data Fields | |
$amount | |
$concept | |
$created | |
$data | |
$fromaccount | |
$id | |
$modified | |
$state | |
$toaccount | |
$user | |
const | STATE_ACCEPTED = 2 |
The transaction has been accepted by all authorities. More... | |
const | STATE_ARCHIVED = 4 |
The transaction is archieved and successfully applied. More... | |
const | STATE_COMMITTED = 3 |
The transaction has been successfully applied. More... | |
const | STATE_DISCARDED = 6 |
The transaction is discarded and has not been applied. More... | |
const | STATE_ERROR = 11 |
There has been a system error with this transaction. More... | |
const | STATE_NEW = 0 |
The transaction has been created but hasn't already been triggered to apply. More... | |
const | STATE_REJECTED = 5 |
The transaction -triggered to apply- has been rejected by some of the authorities. More... | |
const | STATE_REVOKE_ACCEPTED = 8 |
The revoke operation has been accepted by all authorities. More... | |
const | STATE_REVOKE_REJECTED = 9 |
Some authorities rejected the revoke operation, so the transaction will remain applied. More... | |
const | STATE_REVOKE_TRIGGERED = 7 |
The transaction has been triggered to be revoked. More... | |
const | STATE_REVOKED = 10 |
The transaction has been successfully revoked. More... | |
const | STATE_TRIGGERED = 1 |
The transaction has been triggered to be applied. More... | |
Static Public Attributes | |
static | $table = 'ces_transaction' |
Protected Member Functions | |
getSimpleRecord () | |
Object simple record. More... | |
loadRecord ($record) | |
Loads a database record to this object. More... | |
Static Protected Member Functions | |
static | getStateString ($state) |
TODO: document. More... | |
Concrete class for the basic transaction.
It can be enhanced using DecoratorTransactions.