Class Date
- MvcCore\Ext\Form\Core\Validator
-
MvcCore\Ext\Form\Validators\Date
Direct known subclasses
MvcCore\Ext\Form\Validators\Time
public
string|array
|
#
Validate( string|array $submitValue, string $fieldName,
Validation template method. In your validator implementation, check submitted value by validator specific rules and if there is any error, call $form->AddError with translated or not translated error message. Return safe submitted value as result. |
protected
|
Create(),
__construct(),
addError()
|
public static
array
|
$ErrorMessagesformatReplacements
|
#
array(
'd' => 'dd',
'j' => 'd',
'D' => 'Mon-Sun',
'l' => 'Monday-Sunday',
'm' => 'mm',
'n' => 'm',
'M' => 'Jan-Dec',
'F' => 'January-December',
'Y' => 'yyyy',
'y' => 'yy',
'a' => 'am',
'A' => 'pm',
'g' => '1-12',
'h' => '01-12',
'G' => '01-12',
'H' => '00-23',
'i' => '00-59',
's' => '00-59',
'u' => '0-999999',
)
|
$Controller,
$Form,
$Translate,
$Translator,
$instances,
$validatorsClassNameTemplate
|