__construct()
__get()
__set()
asArray()
fill()
getModifiedData()
isNew()
reset()
revert()
convert()
getDataType()
$converter
$dataStructure
$reverter
$data
$is_new
$modified
The entity class is a representation of data from a data source as an object.
package | Cactus |
---|---|
author | Dave Widmer |
__construct(array $data, array $structure)
array
Initial data for a new entity.
array
The data structure of the entity properties
__get(string $name)
string
The property name to get.
__set(string $name, mixed $value)
string
The property name
mixed
The property value
asArray(array $keys) : array
array
A list of keys to pull out in case all of the data isn't needed.
array
fill(array $data)
array
The data to set
getModifiedData() : array
array
isNew() : boolean
boolean
revert(array $data) : array
array
The data to revert. Uses internal data if nothing is passed in.
array
convert(string $name, mixed $value) : mixed
string
The name of the property
mixed
The current value
mixed
The converted valuegetDataType(string $name) : mixed
string
The property name to get the type of
mixed
A string data type or boolean false$dataStructure : array
$data : array
$is_new : boolean
$modified : array