Option
in package
Table of Contents
- $dropdownFactory : Dropdown
- $predefinedFactory : Predefined
- __construct() : mixed
- Constructor.
- createCheckbox() : Checkbox
- Return checkbox option.
- createId() : Id
- Return ID.
- createNumber() : Number
- Return number option.
- createOptions() : Options
- Return options.
- createOptionsFromUpdateSet() : Options
- Return options from update set and widget definition.
- createText() : Text
- Return text option.
- createTitle() : Title
- Return title.
- createTitles() : OptionTitles
- Return titles.
- createUpdateSet() : UpdateSet
- Return update set.
- createUpdateSetFromOptions() : UpdateSet
- Return update set from options.
- useDropdowns() : Dropdown
- Return dropdown factory.
- usePredefined() : Predefined
- Return predefined options factory.
Properties
$dropdownFactory
private
Dropdown
$dropdownFactory
$predefinedFactory
private
Predefined
$predefinedFactory
Methods
__construct()
Constructor.
public
__construct(Dropdown $dropdownFactory, Predefined $predefinedFactory) : mixed
Parameters
- $dropdownFactory : Dropdown
- $predefinedFactory : Predefined
Return values
mixed —createCheckbox()
Return checkbox option.
public
createCheckbox(Id $id, bool $value, OptionTitles $titles) : Checkbox
Parameters
- $id : Id
- $value : bool
- $titles : OptionTitles
Return values
Checkbox —createId()
Return ID.
public
createId(string $id) : Id
Parameters
- $id : string
Return values
Id —createNumber()
Return number option.
public
createNumber(Id $id, int $value, OptionTitles $titles) : Number
Parameters
- $id : Id
- $value : int
- $titles : OptionTitles
Return values
Number —createOptions()
Return options.
public
createOptions(Option ...$options) : Options
Parameters
- $options : Option
Return values
Options —createOptionsFromUpdateSet()
Return options from update set and widget definition.
public
createOptionsFromUpdateSet(UpdateSet $updateSet, WidgetDefinition $definition) : Options
Parameters
- $updateSet : UpdateSet
- $definition : WidgetDefinition
Return values
Options —createText()
Return text option.
public
createText(Id $id, string $value, OptionTitles $titles) : Text
Parameters
- $id : Id
- $value : string
- $titles : OptionTitles
Return values
Text —createTitle()
Return title.
public
createTitle(LanguageCode $languageCode, string $title) : Title
Parameters
- $languageCode : LanguageCode
- $title : string
Return values
Title —createTitles()
Return titles.
public
createTitles(Title ...$titles) : OptionTitles
Parameters
- $titles : Title
Return values
OptionTitles —createUpdateSet()
Return update set.
public
createUpdateSet(array<string|int, mixed> $updateSet) : UpdateSet
Parameters
- $updateSet : array<string|int, mixed>
Return values
UpdateSet —createUpdateSetFromOptions()
Return update set from options.
public
createUpdateSetFromOptions(Options $options) : UpdateSet
Parameters
- $options : Options
Return values
UpdateSet —useDropdowns()
Return dropdown factory.
public
useDropdowns() : Dropdown
Return values
Dropdown —usePredefined()
Return predefined options factory.
public
usePredefined() : Predefined