Framework
3.9
|
Public Member Functions | |
DateRangeValidator ($field, $title, $min, $max, $message=null) | |
writeClient () | |
If min or max set and it is a date string then validate as a date, if set and it is not a date string, then get the value from the form's field. More... | |
validate () | |
Public Member Functions inherited from AbstractValidator | |
AbstractValidator ($field, $title) | |
Additional Inherited Members | |
Public Attributes inherited from AbstractValidator | |
$field | |
$title | |
string | $field | |
string | $title | |
string | or Date $min | |
string | or Date $max | |
string | $message | Min can be either a static date min that the field's value must be set to or the name of a field whose value will be compared to the given field. Date strings can be in either format '2000-01-01' or '01/01/2000' |
e.g. static date param: today() or '2000-01-01' field date: "end_date" where end_date is the tag for a date input field displayed on the form
Definition at line 495 of file validation.inc.
DateRangeValidator::DateRangeValidator | ( | $field, | |
$title, | |||
$min, | |||
$max, | |||
$message = null |
|||
) |
Definition at line 497 of file validation.inc.
DateRangeValidator::validate | ( | ) |
Reimplemented from AbstractValidator.
Definition at line 601 of file validation.inc.
DateRangeValidator::writeClient | ( | ) |
If min or max set and it is a date string then validate as a date, if set and it is not a date string, then get the value from the form's field.
Reimplemented from AbstractValidator.
Definition at line 546 of file validation.inc.