Class reference table - myValidator
The class myValidator forms the basis of the validation of the form controls of
the adventure php framework. It offers methods to validate miscellaneous user input like
strings, e-mails and phone or fax numbers. If it is necessary to use the validator itself it must be
included using the
import('tools::validator','myValidator');
directive. After doing so the following methods can be used statically:
-
validateText():
Checks whether the given string contains more than three characters.
-
validateEMail():
Validates if the given string is a valid e-mail address.
-
validateTelefon():
Validates if the given string is a valid phone number.
-
validateFax:
Validates if the given string is a valid fax number.
-
validateNumber():
Checks whether the given string is a number.
-
validateFolder():
Validates if the given string is suitable for naming a folder.
-
validateRegExp():
Checks whether the given string matches the given regular expression.
Comments
Do you want to add a comment to the article above, or do you want to post additional hints? So please click here. Comments already posted can be found below.
There are no comments belonging to this article.
|