2011.1. Zend\I18n\Validator\PostCode
2011.1.1. Methods
2011.1.1.1. __construct
-
__construct()
Constructor for the PostCode validator
Accepts a string locale and/or “format”.
Parameters: | array|Traversable – |
2011.1.1.2. getLocale
-
getLocale()
Returns the set locale
Return type: | string|null The set locale |
2011.1.1.3. setLocale
-
setLocale()
Sets the locale to use
Parameters: | string|null – |
Return type: | PostCode Provides fluid interface |
2011.1.1.6. getService
-
getService()
Returns the actual set service
2011.1.1.7. setService
-
setService()
Sets a new callback for service validation
Parameters: | mixed – |
Return type: | PostCode Provides fluid interface |
2011.1.1.8. isValid
-
isValid()
Returns true if and only if $value is a valid postalcode
Parameters: | string – |
Return type: | bool |
Throws : | ExceptionInvalidArgumentException |
2011.1.2. Constants
2011.1.2.1. INVALID
2011.1.2.2. NO_MATCH
2011.1.2.3. SERVICE
2011.1.2.4. SERVICEFAILURE