spunQ_EmailSyntaxValidator Class Reference

Validator for email syntax. More...

Inheritance diagram for spunQ_EmailSyntaxValidator:

spunQ_IFieldValidator

List of all members.

Public Member Functions

 validate ($messagePrefix, $value)
 Does the validation.
 showJsValidationString ($typePath, $messagePrefix)
 Prints javascript for this validator.


Detailed Description

Validator for email syntax.

Adding this validator does not guarantee that the email address exists!

Definition at line 7 of file EmailSyntaxValidator.class.php.


Member Function Documentation

spunQ_EmailSyntaxValidator::showJsValidationString ( typePath,
messagePrefix 
)

Prints javascript for this validator.

Should make use a call to the spunQ javascript function spunQ.form.registerValidator().

Parameters:
$messagePrefix A string to prepend to the error message key.
Returns:
boolean Whether any validation javascript was displayed.

Implements spunQ_IFieldValidator.

Definition at line 25 of file EmailSyntaxValidator.class.php.

spunQ_EmailSyntaxValidator::validate ( messagePrefix,
value 
)

Does the validation.

Parameters:
$messagePrefix A string to prepend to the error message key.
$value The spunQ value to validate.
Returns:
string Error message for the validated field, or NULL if the value was valid.

Implements spunQ_IFieldValidator.

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


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

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