FormLib
[ class tree: FormLib ] [ index: FormLib ] [ all elements ]

Class: EmailValidator

Source Location: /FormLib/EmailValidator.php

Class Overview

Validator
   |
   --RegexValidator
      |
      --EmailValidator

Validates a field as an e-mail address using a regular expression.


Author(s):

  • Randy

Version:

  • 0.2

Methods


Inherited Methods

Class: RegexValidator

RegexValidator::__construct()
RegexValidator::errorMessage()
RegexValidator::isValid()

Class: Validator

Validator::errorMessage()
Get an error message that can be shown to the user.
Validator::isValid()
Validates the value the user entered into a field.

Class Details

[line 19]
Validates a field as an e-mail address using a regular expression.



Tags:

author:  Randy
version:  0.2


[ Top ]


Class Methods


constructor __construct [line 21]

EmailValidator __construct( )



Tags:

access:  public


Overrides RegexValidator::__construct() (parent method not documented)

[ Top ]

method isValid [line 26]

void isValid( &$field)



Tags:

access:  public


Overrides RegexValidator::isValid() (parent method not documented)

Parameters:

   &$field  

[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:48:04 -0600 by phpDocumentor 1.3.1