OptionsListDefinition
trait OptionsListDefinition
Options list definition table trait
Methods
mixed
getByKey(string $key)
Get options list
static void
bootOptionsList()
Boot trait
Model|false
addItem(string $typeName, string $key, string|null $branch = null)
Add item
mixed
getItems(string $typeName, string|null $branch = null)
Get items
QueryBuilder
getItemsQuery(string $typeName, string|null $branch = null)
Get items query
boolean
hasItem(string $typeName, string $key, string|null $branch = null)
Return true if item exist
Details
at line 23
mixed
getByKey(string $key)
Get options list
at line 33
static void
bootOptionsList()
Boot trait
at line 60
Model|false
addItem(string $typeName, string $key, string|null $branch = null)
Add item
at line 79
mixed
getItems(string $typeName, string|null $branch = null)
Get items
at line 91
QueryBuilder
getItemsQuery(string $typeName, string|null $branch = null)
Get items query
at line 107
boolean
hasItem(string $typeName, string $key, string|null $branch = null)
Return true if item exist