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'
INVALID_DATE = 'dateInvalidDate'
FALSEFORMAT = 'dateFalseFormat'
string|null $_format = ''
Optional format
string|Zend_Locale|null $_locale = ''
Optional locale
array $_messageTemplates = 'array'
Validation failure message template definitions
array $_messageVariables = 'array'
__construct(
string|Zend_Config $options
=
array
)
:
void
Sets validator options
_checkFormat(
string $value
)
:
boolean
Check if the given date fits the given format
getFormat(
)
:
string|null
Returns the locale option
getLocale(
)
:
string|Zend_Locale|null
Returns the locale option
isValid(
string|array|Zend_Date $value
)
:
boolean
Defined 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()
setFormat(
string $format
=
null
)
:
Zend_Validate_Date
Sets the format option
setLocale(
string|Zend_Locale $locale
=
null
)
:
Zend_Validate_Date
Sets the locale option