Class PhoneValidator

Description

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

If $bool_allowExtension is set to false, exactly 10 integers are required. Less than 10 integers is never accepted. 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/PhoneValidator.php (line 11)

Validator
   |
   --PhoneValidator
Variable Summary
Method Summary
PhoneValidator PhoneValidator (string $a_str_fieldName, [boolean $a_bool_allowExtension = true], [boolean $a_bool_allowLetters = false], [string $a_str_errorMessage = null], [string $a_str_fieldValue = null])
void validate ()
Variables
mixed $bool_allowExtension (line 17)
mixed $bool_allowLetters (line 19)
mixed $obj_validationSet (line 18)

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

Redefinition of:
Validator::$str_errorMessage
mixed $str_fieldName (line 14)
mixed $str_fieldValue (line 15)
Methods
Constructor PhoneValidator (line 32)

create new PhoneValidator object

PhoneValidator PhoneValidator (string $a_str_fieldName, [boolean $a_bool_allowExtension = true], [boolean $a_bool_allowLetters = false], [string $a_str_errorMessage = null], [string $a_str_fieldValue = null])
  • string $a_str_fieldName
  • boolean $a_bool_allowExtension
  • boolean $a_bool_allowLetters
  • string $a_str_errorMessage
  • string $a_str_fieldValue
validate (line 62)

validate

void validate ()

Inherited Methods

Inherited From Validator

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

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