Public Member Functions |
| __construct ($format=null, $locale=null) |
| getLocale () |
| setLocale ($locale=null) |
| getFormat () |
| setFormat ($format=null) |
| isValid ($value) |
Data Fields |
const | INVALID = 'dateInvalid' |
const | NOT_YYYY_MM_DD = 'dateNotYYYY-MM-DD' |
const | INVALID_DATE = 'dateInvalidDate' |
const | FALSEFORMAT = 'dateFalseFormat' |
Protected Attributes |
| $_messageTemplates |
| $_format |
| $_locale |
Detailed Description
Definition at line 33 of file Date.php.
Constructor & Destructor Documentation
__construct |
( |
$ |
format = null , |
|
|
$ |
locale = null |
|
) |
| |
Sets validator options
- Parameters:
-
string | $format | OPTIONAL |
string | Zend_Locale | $locale | OPTIONAL |
- Returns:
- void
Definition at line 73 of file Date.php.
Member Function Documentation
Returns the locale option
- Returns:
- string|null
Definition at line 116 of file Date.php.
Returns the locale option
- Returns:
- string|Zend_Locale|null
Definition at line 93 of file Date.php.
setFormat |
( |
$ |
format = null ) |
|
setLocale |
( |
$ |
locale = null ) |
|
Field Documentation
$_messageTemplates [protected] |
Initial value: array(
self::INVALID => "Invalid type given, value should be string, integer, array or Zend_Date",
self::NOT_YYYY_MM_DD => "'%value%' is not of the format YYYY-MM-DD",
self::INVALID_DATE => "'%value%' does not appear to be a valid date",
self::FALSEFORMAT => "'%value%' does not fit given date format"
)
Reimplemented from Zend_Validate_Abstract.
Definition at line 45 of file Date.php.
The documentation for this class was generated from the following file:
- E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Validate/Date.php