__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
stringThe column to sort on
stringThe direction to sort on (ASC or DESC)
delete(Entity $entity) : boolean
filter(mixed $data, array $columns) : array
mixedThe data to filter.
arrayThe columns to filter on.
arrayThe filtered datafind(array $params) : \Cactus\Collection
get(mixed $key) : \Cactus\Entity
mixedThe value of the primary key that is used to find the data
getColumns() : array
arraygetValidationRules() : array
arrayformCollection(array $result) : \Cactus\Collection
init()
prepareData(Entity $entity) : array
arrayThe modified/filtered/reverted data...$objectClass : string
$columns : array
$primary_key : string
$rules : array
$table : string