trait OptionType

Option type table trait

Properties

static $TYPES_LIST Option type text

Methods

static integer|null
getOptionTypeId(string $type)

Get option type id

string|false
getTypeText(int|null $type = null)

Get option type name

static void
bootOptionType()

Boot trait

integer
TIME_INTERVAL()

Time interval option type

integer
DATE()

Date time option type

integer
USERGROUP()

User group option type

integer
PERMISSION()

Permission option type

integer
TEXT()

Text type option

integer
CHECKBOX()

Checkbox type option

integer
DROPDOWN()

Dropdown type option

integer
TEXTAREA()

Text area type option

integer
RELATION()

Relation type option

integer
NUMBER()

Number type option

integer
PRICE()

Price type option

void
setItemsAttribute(array $value)

Mutator (set) for items attribute.

array
getItemsAttribute()

Mutator (get) for items attribute.

mixed
getByKey(string $key)

Get option type

Details

at line 45
static integer|null getOptionTypeId(string $type)

Get option type id

Parameters

string $type

Return Value

integer|null

at line 58
string|false getTypeText(int|null $type = null)

Get option type name

Parameters

int|null $type

Return Value

string|false

at line 70
static void bootOptionType()

Boot trait

Return Value

void

at line 99
integer TIME_INTERVAL()

Time interval option type

Return Value

integer

at line 109
integer DATE()

Date time option type

Return Value

integer

at line 119
integer USERGROUP()

User group option type

Return Value

integer

at line 129
integer PERMISSION()

Permission option type

Return Value

integer

at line 139
integer TEXT()

Text type option

Return Value

integer

at line 149
integer CHECKBOX()

Checkbox type option

Return Value

integer

at line 159
integer DROPDOWN()

Dropdown type option

Return Value

integer

at line 169
integer TEXTAREA()

Text area type option

Return Value

integer

at line 179
integer RELATION()

Relation type option

Return Value

integer

at line 189
integer NUMBER()

Number type option

Return Value

integer

at line 199
integer PRICE()

Price type option

Return Value

integer

at line 210
void setItemsAttribute(array $value)

Mutator (set) for items attribute.

Parameters

array $value

Return Value

void

at line 221
array getItemsAttribute()

Mutator (get) for items attribute.

Return Value

array

at line 232
mixed getByKey(string $key)

Get option type

Parameters

string $key

Return Value

mixed