Class ZipValidator

Description

Checks a form field's value for a certain number of integers.

Either 5 or 9 integers are required. Does not validate if the field value is empty. Dev Note: This validator ignores non-numeric characters; successful db submission depends on column type.

Located in /validators/ZipValidator.php (line 10)

Validator
   |
   --ZipValidator
Variable Summary
Method Summary
ZipValidator ZipValidator (string $a_str_fieldName, [string $a_str_errorMessage = null], [string $a_str_fieldValue = null])
void validate ()
Variables
mixed $obj_validationSet (line 16)

Redefinition of:
Validator::$obj_validationSet
mixed $str_errorMessage (line 15)

Redefinition of:
Validator::$str_errorMessage
mixed $str_fieldName (line 13)
mixed $str_fieldValue (line 14)
Methods
Constructor ZipValidator (line 27)

create new ZipValidator object

ZipValidator ZipValidator (string $a_str_fieldName, [string $a_str_errorMessage = null], [string $a_str_fieldValue = null])
  • string $a_str_fieldName
  • string $a_str_errorMessage
  • string $a_str_fieldValue
validate (line 55)

validate

void validate ()

Inherited Methods

Inherited From Validator

Validator::getValueByFieldName()
Validator::setValidationSet()

Documentation generated on Mon, 29 Aug 2005 13:35:47 -0400 by phpDocumentor 1.3.0RC3