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

Class: DNSEmailRule

Source Location: /framework/validation/rules/email.inc.php

http://wact.sourceforge.net/index.php/DNSEmailRule

Class Overview

Rule
   |
   --SingleFieldRule
      |
      --DomainRule
         |
         --EmailRule
            |
            --DNSEmailRule

Check for a valid email address and verify that a mail server DNS record exists for this address.

Methods


Inherited Variables

Inherited Methods

Class: EmailRule

EmailRule::EmailRule()
Constructs a EmailRule
EmailRule::Check()
Performs validation of a single value
EmailRule::CheckDomain()
Performs validation of an email domain
EmailRule::CheckUser()
Performs validation of an email user

Class: DomainRule

DomainRule::DomainRule()
Constructs a DomainRule
DomainRule::Check()
Performs validation of a single value

Class: SingleFieldRule

SingleFieldRule::SingleFieldRule()
Constructs Rule
SingleFieldRule::Check()
Check a Single Value to see if its valid
SingleFieldRule::Error()
Signal that an error has occurred.
SingleFieldRule::getField()
Returns the fieldname the rule applies to
SingleFieldRule::IsValid()
Have we already determined this error to be invalid?
SingleFieldRule::validate()
Perform validation

Class: Rule

Rule::setGroup()
Sets the error message group (related to the vars file)
Rule::validate()
Perform validation

Class Details

Check for a valid email address and verify that a mail server DNS record exists for this address.

Class Methods


constructor DNSEmailRule

Constructs a DNSEmailRule

DNSEmailRule DNSEmailRule( string $fieldname, array 1)

API Tags:

access:  public

Parameters:

array   1   of acceptable values
string   $fieldname   fieldname to validate

method CheckDomain

Performs validation of a single value

void CheckDomain( string $value)

API Tags:

access:  protected
Overrides EmailRule::CheckDomain() (Performs validation of an email domain)

Parameters:

string   $value   value to validate
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:46:06 -0800 by phpDocumentor 1.2.3