Class Week
Responsibility: Validate submitted week format, min., max., step and remove dangerous characters.
- MvcCore\Ext\Forms\Validator implements MvcCore\Ext\Forms\IValidator
-
MvcCore\Ext\Forms\Validators\Date implements MvcCore\Ext\Forms\Fields\IMinMaxStepDates uses MvcCore\Ext\Forms\Field\Props\Format, MvcCore\Ext\Forms\Field\Props\MinMaxStepDates
-
MvcCore\Ext\Forms\Validators\Week
Namespace: MvcCore\Ext\Forms\Validators
Located at ext-form-field-date/src/MvcCore/Ext/Forms/Validators/Week.php
Located at ext-form-field-date/src/MvcCore/Ext/Forms/Validators/Week.php
SetField(),
Validate(),
checkMinMax(),
checkStep()
|
CreateInstance(),
GetErrorMessage(),
SetForm(),
__construct(),
setUpFieldProps(),
throwNewInvalidArgumentException()
|
GetMax(),
GetMin(),
GetStep(),
SetMax(),
SetMin(),
SetStep()
|
GetFormat(),
SetFormat()
|
GetMax(),
GetMin(),
GetStep(),
SetMax(),
SetMin(),
SetStep(),
createDateTimeFromInput()
|
ERROR_DATE_INVALID,
ERROR_DATE_STEP,
ERROR_DATE_TO_HIGH,
ERROR_DATE_TO_LOW
|
protected static
array
|
$errorMessages
Validation failure message template definitions. |
#
[
self::ERROR_DATE_INVALID => "Field '{0}' requires a valid week format: '{1}'.",
self::ERROR_DATE_TO_LOW => "Field '{0}' requires week higher or equal to '{1}'.",
self::ERROR_DATE_TO_HIGH => "Field '{0}' requires week lower or equal to '{1}'.",
self::ERROR_DATE_STEP => "Field '{0}' requires week in predefined weeks interval '{1}' from start point '{2}'.",
]
|
$errorMessagesFormatReplacements,
$fieldSpecificProperties,
$format
|
$field,
$form,
$toolClass
|
$max,
$min,
$step
|