[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/ -> Date.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 259 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_Date:: (7 methods):
  __construct()
  getLocale()
  setLocale()
  getFormat()
  setFormat()
  isValid()
  _checkFormat()


Class: Zend_Validate_Date  - X-Ref


__construct($options = array()   X-Ref
Sets validator options

param: string|Zend_Config $options OPTIONAL
return: void

getLocale()   X-Ref
Returns the locale option

return: string|Zend_Locale|null

setLocale($locale = null)   X-Ref
Sets the locale option

param: string|Zend_Locale $locale
return: Zend_Validate_Date provides a fluent interface

getFormat()   X-Ref
Returns the locale option

return: string|null

setFormat($format = null)   X-Ref
Sets the format option

param: string $format
return: Zend_Validate_Date provides a fluent interface

isValid($value)   X-Ref
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()

param: string|array|Zend_Date $value
return: boolean

_checkFormat($value)   X-Ref
Check if the given date fits the given format

param: string $value  Date to check
return: boolean False when date does not fit the format



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1