Class MVCnPHP_Validator

Description

This is a validator class meant to ease the tasks often done by validation logic

Located in /Validator.php (line 39)

MVCnPHP_BaseCommand
   |
   --MVCnPHP_Validator
Variable Summary
object $form
Method Summary
MVCnPHP_Validator __construct ()
boolean contains (string $varName)
variant get (string $varName)
array &getValues ()
void remove (string $varName)
void set (string $varName, string $value)
Variables
object $form = null (line 44)
  • access: private
Methods
Constructor __construct (line 55)

Constructor

Initializes form object

MVCnPHP_Validator __construct ()
contains (line 72)

Determines if the submitted form has a value for a given variable name

This is a simple pass thru to the form object

  • return: True if found, otherwise false
  • access: public
  • author: Tony Bibbs <tony@geeklog.net>
boolean contains (string $varName)
  • string $varName: Name of form variable
get (line 88)

Gets value for given variable name

This is a simple pass thru to the form object

  • return: Value of form variable
  • access: public
  • author: Tony Bibbs <tony@geeklog.net>
variant get (string $varName)
  • string $varName: Name of form variable to get value for
getValues (line 134)

Returns value array

This is a simple pass thru to the form object

array &getValues ()
remove (line 103)

Deletes a form variable

This is a simple pass thru to the form object

void remove (string $varName)
  • string $varName: Name of form variable to delete
set (line 119)

Sets a field to given value

This is a simple pass thru to the form object

void set (string $varName, string $value)
  • string $varName: Name of field to set
  • string $value: Value to set field to

Documentation generated on Mon, 7 Mar 2005 22:36:22 -0600 by phpDocumentor 1.3.0RC3