Arikaim CMS

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|false

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
QueryBuilder

hasItem()

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
Return values
bool

        
On this page

Search results