
Public Member Functions | |
| validate ($messagePrefix, $value) | |
| Does the validation. | |
| showJsValidationString ($typePath, $messagePrefix) | |
| Prints javascript for this validator. | |
Definition at line 7 of file IFieldValidator.interface.php.
| spunQ_IFieldValidator::showJsValidationString | ( | $ | typePath, | |
| $ | messagePrefix | |||
| ) |
Prints javascript for this validator.
Should make use a call to the spunQ javascript function spunQ.form.registerValidator().
| $messagePrefix | A string to prepend to the error message key. |
Implemented in spunQ_DateRangeValidator, spunQ_EmailSyntaxValidator, spunQ_FieldValidator, spunQ_StringLengthValidator, spunQ_UniqueMemberValidator, and spunQ_UrlSyntaxValidator.
| spunQ_IFieldValidator::validate | ( | $ | messagePrefix, | |
| $ | value | |||
| ) |
Does the validation.
| $messagePrefix | A string to prepend to the error message key. | |
| $value | The spunQ value to validate. |
NULL if the value was valid. Implemented in spunQ_ArrayLengthValidator, spunQ_CheckedValidator, spunQ_DateRangeValidator, spunQ_EmailSyntaxValidator, spunQ_NotNullValidator, spunQ_StringLengthValidator, spunQ_UniqueMemberValidator, and spunQ_UrlSyntaxValidator.
1.5.9