Adventure,PHP,framework,page controller,front controller,pattern,object orientated design,software,development,reusability,uml,tutorial,benchmark,brilliant performance,

Search:    
Downloads  |  SVN!  |  Roadmap  |  Forum!  |  Bugtracking  |  Guestbook  |  Backlinks!  |  References!  |  Sitemap  |  Impress  
 
Deutsch | English Adventure PHP Framework  Bookmark @ Technorati Bookmark @ del.icio.us Bookmark @ Mr. Wong Bookmark @ Simpy Bookmark @ Google Bookmark @ Digg.com Adventure PHP Framework Print page 029-Class-reference-table-myvalidator

Class reference table - myValidator

Rank article:
This article has not yet been ranked. Vote this article first of all!
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.


Powered by WebRing.