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

Class: DomainRule

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

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

Class Overview

Rule
   |
   --SingleFieldRule
      |
      --DomainRule

Check for a valid domain name.

Methods


Child classes:

DNSDomainRule
check for a valid domain name with a valid DNS Record.
EmailRule
Check for a valid email address.
UrlRule
Check for a valid Url.

Inherited Variables

Inherited Methods

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 domain name.

Class Methods


constructor DomainRule

Constructs a DomainRule

DomainRule DomainRule( string $fieldname, array 1)

API Tags:

access:  public

Parameters:

array   1   of acceptable values
string   $fieldname   fieldname to validate

method Check

Performs validation of a single value

void Check( string $value)

API Tags:

todo:  Find the RFC that describes valid domain names and post a link to it here.
access:  protected

Overridden in child classes as:

DNSDomainRule::Check()
Performs validation of a single value
EmailRule::Check()
Performs validation of a single value
UrlRule::Check()
Performs validation of a single value

Overrides SingleFieldRule::Check() (Check a Single Value to see if its valid)

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:45:59 -0800 by phpDocumentor 1.2.3