common.validator
[ class tree: common.validator ] [ index: common.validator ] [ all elements ]

Class: ValidatorManager

Source Location: /validate/ValidatorManager.class.php

Class Overview


Validator Manager allows for easy management of pass/fail situations with regards to the integrity and validation of user input


Author(s):

  • Tyler Tompkins (ttompkins@mojavi.org)

Variables

Methods



Class Details

[line 20]
Validator Manager allows for easy management of pass/fail situations with regards to the integrity and validation of user input



Tags:

since:  2.0.0 $Id$
author:  Tyler Tompkins (ttompkins@mojavi.org)


[ Top ]


Class Variables

$out =

[line 28]


Type:   mixed


[ Top ]

$rules = array()

[line 27]


Type:   mixed


[ Top ]

$src =  null

[line 26]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 32]

ValidatorManager __construct( Container $src, Container $out)



Tags:

access:  public


[ Top ]

method addRule [line 61]

array addRule( string $ruleKey, Rule $message, mixed $ruleValue, Rule $rule)

Add a rule to the validator



Tags:

return:  An associative array of parameters in the form
  • userValue => Value to be checked
  • ruleValue => Value the userValue is to be checked against by the rule
  • ruleKey => A handle for the validator to flag the error messenger that
the rule failed
access:  public
since:  4.0.0
author:  Tyler Tompkins (ttompkins@mojavi.org)
throws:  InvalidArgumentException If


Parameters:

string   $ruleKey   A key handle to desribe the Rule, and where to locate the key in the this->src array
Rule   $message   A Rule to use to validate the parameters
mixed   $ruleValue   A Rule value to validate the retrieved user value against

[ Top ]

method execute [line 84]

array execute( type 0)

Execute the manager



Tags:

access:  public
since:  4.0.0
author:  Tyler Tompkins (ttompkins@mojavi.org)


Parameters:

type   0   descrip

[ Top ]


Documentation generated on Tue, 21 Feb 2006 02:30:07 +0900 by phpDocumentor 1.3.0RC5