Class ValueInOptions
Responsibility: Validate if submitted string(s) are presented in options keys.
- MvcCore\Ext\Forms\Validator implements MvcCore\Ext\Forms\IValidator
-
MvcCore\Ext\Forms\Validators\ValueInOptions implements MvcCore\Ext\Forms\Fields\IMultiple, MvcCore\Ext\Forms\Fields\IOptions uses MvcCore\Ext\Forms\Field\Props\Multiple, MvcCore\Ext\Forms\Field\Props\Options
Direct known subclasses
MvcCore\Ext\Forms\Validators\MinMaxOptions
Namespace: MvcCore\Ext\Forms\Validators
Located at ext-form-field-selection/src/MvcCore/Ext/Forms/Validators/ValueInOptions.php
Located at ext-form-field-selection/src/MvcCore/Ext/Forms/Validators/ValueInOptions.php
public
string|string[]|null
|
|
protected
array
|
#
completeSafeValueByOptions( string|string[] $submittedValue )
Return safe value(s), which exist(s) in field options
and return boolean ( |
protected
string|string[]|null
|
CreateInstance(),
GetErrorMessage(),
SetField(),
SetForm(),
__construct(),
setUpFieldProps(),
throwNewInvalidArgumentException()
|
GetMultiple(),
SetMultiple()
|
AddOptions(),
GetFlattenOptions(),
GetOptions(),
GetTranslateOptions(),
SetOptions(),
SetTranslateOptions()
|
GetMultiple(),
SetMultiple()
|
AddOptions(),
GetFlattenOptions(),
GetOptions(),
GetTranslateOptions(),
SetOptions(),
SetTranslateOptions()
|
integer |
ERROR_VALID_OPTION
Error message index(es). |
#
0
|
protected static
array
|
$errorMessages
Validation failure message template definitions. |
#
[
self::ERROR_VALID_OPTION => "Field '{0}' requires a valid option.",
]
|
protected static
array
|
$fieldSpecificProperties
Field specific values (camel case) and their validator default values. |
#
[
'multiple' => NULL,
'options' => NULL,
]
|
$field,
$form,
$toolClass
|
$multiple
|
$flattenOptions,
$options,
$translateOptions
|