ModelInterface
The Model interface defines required methods for models to work.
interface Winter\Storm\Halcyon\ModelInterface
At the moment, this only restricts the signature for the constructor to only allow attributes as a parameter, in order to allow several static calls to work within the model architecture, but still allow models to extend the constructor if they wish.
Methods
public
__construct (array $attributes = []
)
Create a new model instance.
Property | Type | Description |
---|---|---|
$attributes | array |
array
A list of attributes to populate in the model. |
Implemented by
Class | Description |
---|---|
CmsCompoundObject
|
This is a base class for CMS objects that have multiple sections - pages, partials and layouts. |
CmsObject
|
This is a base class for all CMS objects - content files, pages, partials and layouts. |
Content
|
The CMS content file class. |
Layout
|
The CMS layout class. |
Meta
|
The CMS meta file class, used for interacting with YAML files within the Halcyon datasources |
Page
|
The CMS page class. |
Partial
|
The CMS partial class. |
Theme
|
This class represents the CMS theme. |
Model
|
This is a base template object. Equivalent to a Model in ORM. |