\Charcoal\ModelModelInterface

Model Interface

Summary

Methods
Constants
setData()
data()
setFlatData()
flatData()
defaultData()
properties()
property()
p()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setData()

setData(array  $data) : \Charcoal\Model\ModelInterface

Parameters

array $data

The model data.

Returns

\Charcoal\Model\ModelInterface

Chainable

data()

data() : array

Returns

array

setFlatData()

setFlatData(array  $data) : \Charcoal\Model\ModelInterface

Parameters

array $data

The odel flat data.

Returns

\Charcoal\Model\ModelInterface

Chainable

flatData()

flatData() : array

Returns

array

defaultData()

defaultData() : array

Returns

array

properties()

properties() : array

Returns

array

property()

property(string  $propertyIdent) : \Charcoal\Model\PropertyInterface

Parameters

string $propertyIdent

The property (ident) to get.

Returns

\Charcoal\Model\PropertyInterface

p()

p(string  $propertyIdent = null) : mixed

Alias of `properties()` (if not parameter is set) or `property()`.

Parameters

string $propertyIdent

The property (ident) to get.

Returns

mixed