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

Parameters

string $key

Return Value

mixed

at line 33
static void bootOptionsList()

Boot trait

Return Value

void

at line 60
Model|false addItem(string $typeName, string $key, string|null $branch = null)

Add item

Parameters

string $typeName
string $key
string|null $branch

Return Value

Model|false

at line 79
mixed getItems(string $typeName, string|null $branch = null)

Get items

Parameters

string $typeName
string|null $branch

Return Value

mixed

at line 91
QueryBuilder getItemsQuery(string $typeName, string|null $branch = null)

Get items query

Parameters

string $typeName
string|null $branch

Return Value

QueryBuilder

at line 107
boolean hasItem(string $typeName, string $key, string|null $branch = null)

Return true if item exist

Parameters

string $typeName
string $key
string|null $branch

Return Value

boolean