Class Nexista_ValidatorHandlerData

Description

This class holds data from a validation procedure ran from ValidationHandler class. It is accessed from Flow and holds data such as which fields failed, messages, etc..

Located in /modules/handlers/validatorhandlerdata.php (line 25)


	
			
Variable Summary
 boolean $success
Method Summary
 Nexista_ValidatorHandlerData __construct ()
 boolean getResult ()
 void itemFail (string $name, string $criteria,  $reason)
 void itemMessage (string $name, string $text)
 void setFail ()
 void validatorMessage (string $name, string $val, string $text)
Variables
boolean $success (line 43)

overall pass/fail criteria of the validation process

  • access: public
array $validatorData = array() (line 34)

array to hold validator data such as which fields failed and how

  • access: public
Methods
Constructor __construct (line 52)

Constructor - Intializes stuff

  • access: public
Nexista_ValidatorHandlerData __construct ()
getResult (line 125)

Gets overall fail/pass

  • return: overall form success
  • access: public
boolean getResult ()
itemFail (line 101)

Sets individual item Fail

  • access: public
void itemFail (string $name, string $criteria,  $reason)
  • string $name: name of failed var
  • string $criteria: criteria that failed
  • $reason
itemMessage (line 70)

Sets pretty text for an item

This is used when optionally showing what form fields were bad and a name is needed to describe what the item in question is.

  • access: public
void itemMessage (string $name, string $text)
  • string $name: name of failed var
  • string $text: pretty text
setFail (line 113)

Sets overall fail/pass

  • access: public
void setFail ()
validatorMessage (line 88)

Sets pretty text for a validator

This is used when optionally showing what form fields were bad and a name is needed to describe what the item in question is.

  • access: public
void validatorMessage (string $name, string $val, string $text)
  • string $name: name of failed var
  • string $val: name of failed validator
  • string $text: pretty text

Documentation generated on Tue, 11 Mar 2008 23:23:16 -0400 for Nexista 0.2.0