OptionType
Option type table trait
Table of Contents
Methods
- bootOptionType() : void
- Boot trait
- DATE() : int
- Date time option type
- getByKey() : mixed
- Get option type
- getItemsAttribute() : array<string|int, mixed>
- Mutator (get) for items attribute.
- getOptionTypeId() : int|null
- Get option type id
- getTypeText() : string|false
- Get option type name
- NUMBER() : int
- Number type option
- PRICE() : int
- Price type option
- setItemsAttribute() : void
- Mutator (set) for items attribute.
- TEXT() : int
- Text type option
- TEXTAREA() : int
- Text area type option
- TIME_INTERVAL() : int
- Time interval option type
Methods
bootOptionType()
Boot trait
public
static bootOptionType() : void
DATE()
Date time option type
public
DATE() : int
Return values
intgetByKey()
Get option type
public
getByKey(string $key) : mixed
Parameters
- $key : string
getItemsAttribute()
Mutator (get) for items attribute.
public
getItemsAttribute() : array<string|int, mixed>
Return values
array<string|int, mixed>getOptionTypeId()
Get option type id
public
static getOptionTypeId(string $type) : int|null
Parameters
- $type : string
Return values
int|nullgetTypeText()
Get option type name
public
getTypeText([int|null $type = null ]) : string|false
Parameters
- $type : int|null = null
Return values
string|falseNUMBER()
Number type option
public
NUMBER() : int
Return values
intPRICE()
Price type option
public
PRICE() : int
Return values
intsetItemsAttribute()
Mutator (set) for items attribute.
public
setItemsAttribute(array<string|int, mixed> $value) : void
Parameters
- $value : array<string|int, mixed>
TEXT()
Text type option
public
TEXT() : int
Return values
intTEXTAREA()
Text area type option
public
TEXTAREA() : int
Return values
intTIME_INTERVAL()
Time interval option type
public
TIME_INTERVAL() : int