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

Class: UrlRule

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

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

Class Overview

Rule
   |
   --SingleFieldRule
      |
      --DomainRule
         |
         --UrlRule

Check for a valid Url.

Variables

Methods


Inherited Variables

Inherited Methods

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 Url.

Class Variables


$AllowableSchemes =

Array of allowable URL schemes e.g.

http, ftp, https etc.

access:  private
Type:   array

Class Methods


constructor UrlRule

Constructs a DomainRule

UrlRule UrlRule( string $fieldname, [array $AllowableSchemes = NULL])

API Tags:

access:  public

Parameters:

string   $fieldname   fieldname to validate
array   $AllowableSchemes   of acceptable URL schemes e.g. http, ftp, https etc.

method Check

Performs validation of a single value

void Check( string $value)

API Tags:

access:  protected
Overrides DomainRule::Check() (Performs validation of a single value)

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:51:25 -0800 by phpDocumentor 1.2.3