Arikaim CMS

OptionsRelation

Options relation table trait

Table of Contents

Methods

getOption()  : object|null
Get option
getOptionsClass()  : string|null
Get option model class
getOptionsListAttribute()  : Collection
Create options_list attribute used for better collection serialization key => value
getOptionValue()  : mixed
Get option value
options()  : mixed
Options relation

Methods

getOption()

Get option

public getOption(string $key) : object|null
Parameters
$key : string
Return values
object|null

getOptionsClass()

Get option model class

public getOptionsClass() : string|null
Return values
string|null

getOptionsListAttribute()

Create options_list attribute used for better collection serialization key => value

public getOptionsListAttribute() : Collection
Return values
Collection

getOptionValue()

Get option value

public getOptionValue(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

        
On this page

Search results