ConfigurationOption
Table of Contents
Constants
- GROUP_ADDITIONAL = 1
- GROUP_DEFAULT = 0
- TYPE_AUDIO = 'audio'
- TYPE_CHECKBOX = 'checkbox'
- TYPE_CONSENT = 'user-consent'
- TYPE_CONSENT_CONTENT = 'user-consent-content'
- TYPE_CUSTOM = 'custom'
- TYPE_DATE_TIME = 'datetime'
- TYPE_EMAIL = 'email'
- TYPE_FILE = 'file'
- TYPE_HTML = 'html'
- TYPE_LIST = 'list'
- TYPE_MAIL_EDITOR = 'mail-editor'
- TYPE_NUMBER = 'number'
- TYPE_PRESET_STRING = 'preset-string'
- TYPE_SMS_EDITOR = 'sms-editor'
- TYPE_STRING = 'string'
- TYPE_TEMPLATE_ID = 'template-id'
- TYPE_TEMPLATE_TYPE = 'template-type'
- TYPE_TEXT = 'text'
- TYPE_TIME = 'time'
- TYPE_TITLE = 'title'
- TYPE_USER_LIST = 'user-list'
Methods
- __construct() : mixed
- Configuration constructor.
- getArray() : array<string|int, mixed>
- Get as array.
- getCode() : string
- Get code.
- getGroup() : int
- Get group.
- getHint() : null|string|array<string|int, mixed>
- Get hint.
- getItems() : array<string|int, mixed>
- Get items.
- getMaxLength() : int
- getMaxValue() : int
- getMinValue() : int
- getName() : string
- Get name.
- getReadonlyView() : mixed
- Get readonly view.
- getShowHelper() : bool
- getShowInFilter() : bool
- Get show in filter or not.
- getShowInList() : bool
- Get show in list or not.
- getShowPreview() : bool
- getType() : string
- Get type.
- getValue() : string|array<string|int, mixed>
- Get value.
- getView() : string|callable
- Get view.
- hasValue() : bool
- Has value.
- isRequired() : bool
- Is required.
- isTemplated() : bool
- Is templated.
- setCode() : void
- Set code.
- setGroup() : void
- Set value.
- setHint() : void
- Set required.
- setItems() : void
- Set items.
- setMaxLength() : mixed
- setMaxValue() : ConfigurationOption
- setMinValue() : ConfigurationOption
- setName() : void
- Set name.
- setReadonlyView() : void
- Set readonly view callback.
- setRequired() : void
- Set required.
- setShowHelper() : ConfigurationOption
- setShowInFilter() : void
- Set show in list or not.
- setShowInList() : void
- Set show in list or not.
- setShowPreview() : ConfigurationOption
- setTemplated() : void
- Set required.
- setType() : void
- Set type.
- setValue() : void
- Set value.
- setView() : void
- Set view.
Constants
GROUP_ADDITIONAL
public
mixed
GROUP_ADDITIONAL
= 1
GROUP_DEFAULT
public
mixed
GROUP_DEFAULT
= 0
TYPE_AUDIO
public
mixed
TYPE_AUDIO
= 'audio'
TYPE_CHECKBOX
public
mixed
TYPE_CHECKBOX
= 'checkbox'
TYPE_CONSENT
public
mixed
TYPE_CONSENT
= 'user-consent'
TYPE_CONSENT_CONTENT
public
mixed
TYPE_CONSENT_CONTENT
= 'user-consent-content'
TYPE_CUSTOM
public
mixed
TYPE_CUSTOM
= 'custom'
TYPE_DATE_TIME
public
mixed
TYPE_DATE_TIME
= 'datetime'
TYPE_EMAIL
public
mixed
TYPE_EMAIL
= 'email'
TYPE_FILE
public
mixed
TYPE_FILE
= 'file'
TYPE_HTML
public
mixed
TYPE_HTML
= 'html'
TYPE_LIST
public
mixed
TYPE_LIST
= 'list'
TYPE_MAIL_EDITOR
public
mixed
TYPE_MAIL_EDITOR
= 'mail-editor'
TYPE_NUMBER
public
mixed
TYPE_NUMBER
= 'number'
TYPE_PRESET_STRING
public
mixed
TYPE_PRESET_STRING
= 'preset-string'
TYPE_SMS_EDITOR
public
mixed
TYPE_SMS_EDITOR
= 'sms-editor'
TYPE_STRING
public
mixed
TYPE_STRING
= 'string'
TYPE_TEMPLATE_ID
public
mixed
TYPE_TEMPLATE_ID
= 'template-id'
TYPE_TEMPLATE_TYPE
public
mixed
TYPE_TEMPLATE_TYPE
= 'template-type'
TYPE_TEXT
public
mixed
TYPE_TEXT
= 'text'
TYPE_TIME
public
mixed
TYPE_TIME
= 'time'
TYPE_TITLE
public
mixed
TYPE_TITLE
= 'title'
TYPE_USER_LIST
public
mixed
TYPE_USER_LIST
= 'user-list'
Methods
__construct()
Configuration constructor.
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
-
Data.
getArray()
Get as array.
public
getArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getCode()
Get code.
public
getCode() : string
Return values
stringgetGroup()
Get group.
public
getGroup() : int
Return values
intgetHint()
Get hint.
public
getHint() : null|string|array<string|int, mixed>
Return values
null|string|array<string|int, mixed>getItems()
Get items.
public
getItems() : array<string|int, mixed>
Return values
array<string|int, mixed>getMaxLength()
public
getMaxLength() : int
Return values
intgetMaxValue()
public
getMaxValue() : int
Return values
intgetMinValue()
public
getMinValue() : int
Return values
intgetName()
Get name.
public
getName() : string
Return values
stringgetReadonlyView()
Get readonly view.
public
getReadonlyView(mixed $value) : mixed
Parameters
- $value : mixed
-
Option value
getShowHelper()
public
getShowHelper() : bool
Return values
boolgetShowInFilter()
Get show in filter or not.
public
getShowInFilter() : bool
Return values
boolgetShowInList()
Get show in list or not.
public
getShowInList() : bool
Return values
boolgetShowPreview()
public
getShowPreview() : bool
Return values
boolgetType()
Get type.
public
getType() : string
Return values
stringgetValue()
Get value.
public
getValue() : string|array<string|int, mixed>
Return values
string|array<string|int, mixed>getView()
Get view.
public
getView() : string|callable
Return values
string|callablehasValue()
Has value.
public
hasValue() : bool
Return values
boolisRequired()
Is required.
public
isRequired() : bool
Return values
boolisTemplated()
Is templated.
public
isTemplated() : bool
Return values
boolsetCode()
Set code.
public
setCode(string $code) : void
Parameters
- $code : string
-
Code.
setGroup()
Set value.
public
setGroup(int $group) : void
Parameters
- $group : int
-
Group.
setHint()
Set required.
public
setHint(null|string|array<string|int, mixed> $hint) : void
Parameters
- $hint : null|string|array<string|int, mixed>
-
Hint.
setItems()
Set items.
public
setItems(array<string|int, mixed> $items) : void
Parameters
- $items : array<string|int, mixed>
-
Items.
setMaxLength()
public
setMaxLength(int $maxLength) : mixed
Parameters
- $maxLength : int
setMaxValue()
public
setMaxValue(int $maxValue) : ConfigurationOption
Parameters
- $maxValue : int
Return values
ConfigurationOptionsetMinValue()
public
setMinValue(int $minValue) : ConfigurationOption
Parameters
- $minValue : int
Return values
ConfigurationOptionsetName()
Set name.
public
setName(string $name) : void
Parameters
- $name : string
-
Name.
setReadonlyView()
Set readonly view callback.
public
setReadonlyView(callable|null $readonlyView) : void
Parameters
- $readonlyView : callable|null
-
Readonly view callback.
setRequired()
Set required.
public
setRequired(bool $required) : void
Parameters
- $required : bool
-
Required.
setShowHelper()
public
setShowHelper(bool $showHelper) : ConfigurationOption
Parameters
- $showHelper : bool
Return values
ConfigurationOptionsetShowInFilter()
Set show in list or not.
public
setShowInFilter(bool $showInFilter) : void
Parameters
- $showInFilter : bool
-
Show in filter.
setShowInList()
Set show in list or not.
public
setShowInList(bool $showInList) : void
Parameters
- $showInList : bool
-
Show in items list.
setShowPreview()
public
setShowPreview(bool $showPreview) : ConfigurationOption
Parameters
- $showPreview : bool
Return values
ConfigurationOptionsetTemplated()
Set required.
public
setTemplated(bool $templated) : void
Parameters
- $templated : bool
-
Templated.
setType()
Set type.
public
setType(string $type) : void
Parameters
- $type : string
-
Type.
setValue()
Set value.
public
setValue(string|array<string|int, mixed> $value) : void
Parameters
- $value : string|array<string|int, mixed>
-
Value.
setView()
Set view.
public
setView(string|callable $view) : void
Parameters
- $view : string|callable
-
View.