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

Class: Validator

Source Location: /framework/validation/validator.inc.php

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

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

Class Overview


Performs the validation checks against the Rules

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

Performs the validation checks against the Rules

Class Variables


$ErrorList =

Instance of ErrorList
access:  private
see:  Validator::$ErrorList
Type:   ErrorList

$IsValid = TRUE

Whether the validation process was valid
access:  private
Type:   boolean

$rules = array()

Indexed array of Rule objects
access:  private
see:  Rule
Type:   array

Class Methods


method addRule

Registers a Rule

void addRule( Rule &$Rule)

API Tags:

access:  public

Parameters:

Rule   &$Rule  

method createErrorList

Initalize Error List

void &createErrorList( Rule 0)

API Tags:

access:  protected

Parameters:

Rule   0  

method getErrorList

Returns the ErrorList

ErrorList &getErrorList( )

API Tags:

access:  public

method IsValid

Whether the validation process was valid

boolean IsValid( [string $FieldName = NULL])

API Tags:

return:  TRUE if valid
access:  public

Parameters:

string   $FieldName   fieldname (default=NULL) unused

method validate

Perform the validation

void validate( DataSpace &$DataSource)

API Tags:

access:  public

Parameters:

DataSpace   &$DataSource   subclass of DataSpace 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:31 -0800 by phpDocumentor 1.2.3