Method |
Description |
|
_add ( ) |
|
|
_serializeLoadField ( Field $f, mixed $value ) : mixed |
Override this to fine-tune un-serialization for your persistence. |
|
_serializeSaveField ( Field $f, mixed $value ) : mixed |
Override this to fine-tune serialization for your persistence. |
|
_typecastLoadField ( Field $f, mixed $value ) : mixed |
This is the actual field typecasting, which you can override in your
persistence to implement necessary typecasting. |
|
_typecastSaveField ( Field $f, mixed $value ) : mixed |
This is the actual field typecasting, which you can override in your
persistence to implement necessary typecasting. |
|
add ( Model | string $m, array $defaults = [] ) : Model |
Associate model with the data driver. |
|
atomic ( callable $f ) : mixed |
Atomic executes operations within one begin/end transaction. Not all
persistences will support atomic operations, so by default we just
don't do anything. |
|
connect ( string $dsn, string $user = null, string $password = null, array $args = [] ) : Persistence |
Connects database. |
|
serializeLoadField ( Field $f, mixed $value ) : mixed |
Provided with a value, will perform field un-serialization. |
|
serializeSaveField ( Field $f, mixed $value ) : mixed |
Provided with a value, will perform field serialization. |
|
typecastLoadField ( Field $f, mixed $value ) : mixed |
Cast specific field value from the way how it's stored inside
persistence to a PHP format. |
|
typecastLoadRow ( Model $m, array $row ) : array |
Will convert one row of data from Persistence-specific
types to PHP native types. |
|
typecastSaveField ( Field $f, mixed $value ) : mixed |
Prepare value of a specific field by converting it to
persistence-friendly format. |
|
typecastSaveRow ( Model $m, array $row ) : array |
Will convert one row of data from native PHP types into
persistence types. This will also take care of the "actual"
field keys. Example:. |
|