libSmalldb
v2.0.2
|
CrudMachine – a basic CRUD state machine definition.
Public Member Functions | |
create ($data) | |
("", {"Exists"}) More... | |
update ($data) | |
("Exists", {"Exists"}) More... | |
delete () | |
("Exists", {""}) More... | |
invalidateCache () | |
Invalidate cached data. More... | |
getState () | |
Read state machine state. More... | |
getDefinition () | |
Get state machine definition. More... | |
isTransitionAllowed (string $transitionName) | |
Return true when the transition is available. More... | |
invokeTransition (string $transitionName,... $args) | |
Invoke transition of the state machine. More... | |
get (string $propertyName) | |
Return value of the given property. More... | |
getMachineType () | |
Get state machine type. More... | |
getMachineId () | |
Get ID of the state machine. More... | |
Public Attributes | |
const | EXISTS = "Exists" |
const | NOT_EXISTS = "" |
create | ( | $data | ) |
("", {"Exists"})
update | ( | $data | ) |
("Exists", {"Exists"})
delete | ( | ) |
("Exists", {""})
|
inherited |
Invalidate cached data.
|
inherited |
Read state machine state.
|
inherited |
Get state machine definition.
|
inherited |
Return true when the transition is available.
|
inherited |
Invoke transition of the state machine.
|
inherited |
Return value of the given property.
|
inherited |
Get state machine type.
|
inherited |
Get ID of the state machine.
The ID must be unique within state machine type.
const EXISTS = "Exists" |
|
inherited |