OptionsListDefinition
Options list definition table trait
Table of Contents
Methods
- addItem() : Model|false
- Add item
- bootOptionsList() : void
- Boot trait
- getByKey() : mixed
- Get options list
- getItems() : mixed
- Get items
- getItemsQuery() : QueryBuilder
- Get items query
- hasItem() : bool
- Return true if item exist
Methods
addItem()
Add item
public
addItem(string $typeName, string $key[, string|null $branch = null ]) : Model|false
Parameters
- $typeName : string
- $key : string
- $branch : string|null = null
Return values
Model|falsebootOptionsList()
Boot trait
public
static bootOptionsList() : void
getByKey()
Get options list
public
getByKey(string $key) : mixed
Parameters
- $key : string
getItems()
Get items
public
getItems(string $typeName[, string|null $branch = null ]) : mixed
Parameters
- $typeName : string
- $branch : string|null = null
getItemsQuery()
Get items query
public
getItemsQuery(string $typeName[, string|null $branch = null ]) : QueryBuilder
Parameters
- $typeName : string
- $branch : string|null = null
Return values
QueryBuilderhasItem()
Return true if item exist
public
hasItem(string $typeName, string $key[, string|null $branch = null ]) : bool
Parameters
- $typeName : string
- $key : string
- $branch : string|null = null