[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/ -> PostCode.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: 210 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_PostCode:: (6 methods):
  __construct()
  getLocale()
  setLocale()
  getFormat()
  setFormat()
  isValid()


Class: Zend_Validate_PostCode  - X-Ref


__construct($options = null)   X-Ref
Constructor for the integer validator

Accepts either a string locale, a Zend_Locale object, or an array or
Zend_Config object containing the keys "locale" and/or "format".

param: string|Zend_Locale|array|Zend_Config $options

getLocale()   X-Ref
Returns the set locale

return: string|Zend_Locale The set locale

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

param: string|Zend_Locale $locale
return: Zend_Validate_PostCode  Provides fluid interface

getFormat()   X-Ref
Returns the set postal code format

return: string

setFormat($format)   X-Ref
Sets a self defined postal format as regex

param: string $format
return: Zend_Validate_PostCode  Provides fluid interface

isValid($value)   X-Ref
Defined by Zend_Validate_Interface

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

param: string $value
return: boolean



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