Class ZipCodeValidator

Description

Validates postal codes

Postal codes must be composed by N numeric chars, an "-" char and N numeric chars. The sizes of the left and right parts must be provided to the validator.

Located in /core/validation/ZipCodeValidator.class.php (line 41)

PHP2Go
   |
   --AbstractValidator
      |
      --ZipCodeValidator
Variable Summary
array $limiters
Method Summary
ZipCodeValidator ZipCodeValidator ([array $params = NULL])
bool execute (string $value)
Variables
array $limiters (line 49)

Contains the sizes of the left and right parts of the postal code

  • access: private

Inherited Variables

Inherited from AbstractValidator

AbstractValidator::$errorMessage
AbstractValidator::$fieldLabel
Methods
Constructor ZipCodeValidator (line 60)

Class constructor

Accepted arguments:

  • limiters (array): array containing the sizes of left and right parts of the postal code

ZipCodeValidator ZipCodeValidator ([array $params = NULL])
  • array $params: Arguments
execute (line 77)

Runs the validation

bool execute (string $value)
  • string $value: Value to be validated

Redefinition of:
AbstractValidator::execute()
Must be implemented by child classes

Inherited Methods

Inherited From AbstractValidator

AbstractValidator::AbstractValidator()
AbstractValidator::execute()
AbstractValidator::getError()

Inherited From PHP2Go

PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()

Documentation generated on Sun, 07 Oct 2007 19:31:22 -0300 by phpDocumentor 1.3.2