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