Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
INVALID = 'dateInvalid'
Details INVALID_DATE = 'dateInvalidDate'
Details FALSEFORMAT = 'dateFalseFormat'
Detailsstring|null $_format = ''Optional format
Detailsstring|Zend_Locale|null $_locale = ''Optional locale
Detailsarray $_messageTemplates = 'array'Validation failure message template definitions
Detailsarray $_messageVariables = 'array'
Details__construct(
string|Zend_Config $options
=
array
)
:
voidSets validator options
Details_checkFormat(
string $value
)
:
booleanCheck if the given date fits the given format
DetailsgetFormat(
)
:
string|nullReturns the locale option
DetailsgetLocale(
)
:
string|Zend_Locale|nullReturns the locale option
DetailsisValid(
string|array|Zend_Date $value
)
:
booleanDefined by Zend_Validate_Interface
Returns true if $value is a valid date of the format YYYY-MM-DD If optional $format or $locale is set the date format is checked according to Zend_Date, see Zend_Date::isDate()
DetailssetFormat(
string $format
=
null
)
:
Zend_Validate_DateSets the format option
DetailssetLocale(
string|Zend_Locale $locale
=
null
)
:
Zend_Validate_DateSets the locale option
Details