|
const | TYPE_ARTICLE = 'article' |
|
const | TYPE_COLLECTION = 'collection' |
|
const | TYPE_HOMEPAGE = 'homepage' |
|
const | TYPE_PAGE = 'page' |
|
const | TYPE_PRICE_RULE = 'price_rule' |
|
const | TYPE_PRODUCT = 'product' |
|
const | MAP = [] |
|
const | PATCH = [] |
|
|
Api | $api |
|
Pool | $pool |
|
mixed | _hydrate (string $class, $item) |
| A factory that also hydrates / caches entities. More...
|
|
array | _select ($subject, callable $filter,... $args) |
| Magic method: selectField(callable $filter) More...
|
|
$this | _setData (array $data) |
| Clears all diffs and sets all data, hydrating mapped fields. More...
|
|
$this | _setField (string $field, $value) |
| Sets a value, hydrating if mapped, and clears the diff. More...
|
|
◆ getId()
◆ getType()
See the type constants.
- Returns
- string
◆ setId()
magic $this setId |
( |
string |
$id | ) |
|
Not needed if type
is homepage
.
- Returns
- $this
◆ setType()
magic $this setType |
( |
string |
$type | ) |
|
See the type constants.
- Returns
- $this