__construct()
all()
delete()
filter()
find()
get()
getColumns()
getValidationRules()
save()
formCollection()
init()
prepareData()
$adapter
$objectClass
$columns
$primary_key
$rules
$table
The mapper class is the gateway for defining data structures as well as knowing how to get them.
package | Cactus |
---|---|
author | Dave Widmer |
__construct(Adapter $adapter)
all(string $column, string $direction) : \Cactus\Collection
string
The column to sort on
string
The direction to sort on (ASC or DESC)
delete(Entity $entity) : boolean
filter(mixed $data, array $columns) : array
mixed
The data to filter.
array
The columns to filter on.
array
The filtered datafind(array $params) : \Cactus\Collection
get(mixed $key) : \Cactus\Entity
mixed
The value of the primary key that is used to find the data
getColumns() : array
array
getValidationRules() : array
array
formCollection(array $result) : \Cactus\Collection
init()
prepareData(Entity $entity) : array
array
The modified/filtered/reverted data...$objectClass : string
$columns : array
$primary_key : string
$rules : array
$table : string