spunQ_JQueryValidationRule Class Reference

Data container for a jquery validation rule. More...

List of all members.

Public Member Functions

 __construct ($name=NULL, $data=NULL, $translatedMessage=NULL)
 Constructor.
 getName ()
 Gets the name of the rule.
 getData ()
 Gets the value to the rule.
 getTranslatedMessage ()
 Gets the error message to display if validation fails.

Public Attributes

 $name
 Name of the rule (required, minlength, remote, .
 $data
 The value to the rule.
 $translatedMessage
 Error message to display if validation fails.


Detailed Description

Data container for a jquery validation rule.

Definition at line 6 of file JQueryValidationRule.class.php.


Constructor & Destructor Documentation

spunQ_JQueryValidationRule::__construct ( name = NULL,
data = NULL,
translatedMessage = NULL 
)

Constructor.

Parameters:
$name 
$data 
$translatedMessage 

Definition at line 34 of file JQueryValidationRule.class.php.


Member Function Documentation

spunQ_JQueryValidationRule::getData (  ) 

Gets the value to the rule.

$name and $value will be used in an associative array and converted to json, this value is expected to be unconverted, though.

Returns:
any

Definition at line 55 of file JQueryValidationRule.class.php.

spunQ_JQueryValidationRule::getName (  ) 

Gets the name of the rule.

Returns:
string

Definition at line 45 of file JQueryValidationRule.class.php.

spunQ_JQueryValidationRule::getTranslatedMessage (  ) 

Gets the error message to display if validation fails.

Returns:
string

Definition at line 63 of file JQueryValidationRule.class.php.


Member Data Documentation

spunQ_JQueryValidationRule::$data

The value to the rule.

$name and $value will be used in an associative array and converted to json, this value is expected to be unconverted, though.

Type:
any

Definition at line 20 of file JQueryValidationRule.class.php.

spunQ_JQueryValidationRule::$name

Name of the rule (required, minlength, remote, .

..)

Type:
string

Definition at line 12 of file JQueryValidationRule.class.php.

spunQ_JQueryValidationRule::$translatedMessage

Error message to display if validation fails.

Type:
string

Definition at line 26 of file JQueryValidationRule.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:42 2011 for spunQ3 by  doxygen 1.5.9