Class Zend_Validate_Date

Description

Implements interfaces:

  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Validate/Date.php (line 36)


	
			
Variable Summary
 string $_format
 Zend_Locale $_locale
 array $_messages
Method Summary
 void __construct ([string $format = null], [Zend_Locale|string $locale = null])
 string getFormat ()
 string getLocale ()
 array getMessages ()
 boolean isValid (mixed $value)
 Zend_Validate_Date setFormat (string $format)
 Zend_Validate_Date setLocale (mixed $locale)
Variables
string $_format (line 45)

Date format option

Date type CLDR format to parse. Only single-letter codes (H, m, s, y, M, d), and MMMM and EEEE are supported.

  • access: protected
Zend_Locale $_locale (line 52)

Date locale option

  • access: protected
array $_messages = array() (line 59)

Array of validation failure messages

  • access: protected
Methods
Constructor __construct (line 68)

Sets validator options

  • access: public
void __construct ([string $format = null], [Zend_Locale|string $locale = null])
  • string $format
  • Zend_Locale|string $locale
getFormat (line 79)

Returns the format option

  • access: public
string getFormat ()
getLocale (line 101)

Returns the locale option

  • access: public
string getLocale ()
getMessages (line 163)

Defined by Zend_Validate_Interface

Returns array of validation failure messages

  • access: public
array getMessages ()

Implementation of:
Zend_Validate_Interface::getMessages()
Returns an array of messages that explain why a previous isValid() call returned false
isValid (line 136)

Defined by Zend_Validate_Interface

Returns true if and only if $value is a valid date

  • access: public
boolean isValid (mixed $value)
  • mixed $value

Implementation of:
Zend_Validate_Interface::isValid()
Returns true if and only if $value meets the validation requirements
setFormat (line 90)

Sets the format option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Date setFormat (string $format)
  • string $format
setLocale (line 112)

Sets the locale option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Date setLocale (mixed $locale)
  • mixed $locale

Documentation generated on Thu, 18 Jan 2007 10:00:44 -0800 by phpDocumentor 1.3.1