Login   Register  
PHP Classes
elePHPant
Icontem

Class: Validator Class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stefan Ihringer  >  Validator Class  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Validator Class
Base name: validatorclass
Description: Validate values reverting to defaults when invalid
Related classes: , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1880 users
All time rank: 1765
Week users: 0 users
Week rank: 2530
Picture of Stefan Ihringer
Author: Stefan Ihringer <e-mail contact>
Packages: 2 Browse this author's classes Browse this author's classes
Country: Germany Germany - PHP jobs in Germany
Age: 33
All time rank: 67947 in Germany Germany
Week rank: 1634 Down93 in Germany Germany Down


  Detailed description  
This class is meant to validate page request values eventually submitted using forms via POST or GET HTTP methods.

The class provides functions that retrieve values submitted in a request variable of a given name and then performs the specified type of validation.

The class provides many built-in types of validation like: is it a valid number, integer, boolean, name of variable, it contains only letters, is it a valid e-mail adress, is it an integer within a given range, or even determine if it is a valid URL by trying to access it.

The class also lets the developers choose its behavior when the value being validated is invalid. The validation functions may return either an empty string, null, zero, or any other default value.

 

  Groups  
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Validation Validation algorithms View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file validator.class.php Class main class file + documentation
Plain text file validatortest.php Example example script

Download all files: validatorclass.tar.gz validatorclass.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.