Login   Register  
PHP Classes
elePHPant
Icontem

Class: param

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Domenico Pontari  >  param  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: param
Base name: param
Description: Validate and filter request values
Related classes:
Version: 1.0
PHP version: 5.0
License: BSD License
All time users: 301 users
All time rank: 5562
Week users: 1 user
Week rank: 2502
Picture of Domenico Pontari
Author: Domenico Pontari <e-mail contact>
Packages: 3 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Age: ???
All time rank: 184378 in Italy Italy
Week rank: 1036 Up38 Up in Italy Italy
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
This class can be used to validate and filter request values.

It can take given POST or GET request values and validate them according to the expected type of the value. The types may be scalar, arrays or objects in JSON format.

The class can also filter values with a maximum length and discard values that seem to be used for SQL injection attempts.

The class can assume a default value for missing or invalid request values.

 

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Validation Validation algorithms View top rated classes

  Rate classes User ratings   Dependencies   Applications   Files Files  

  User ratings  
Not yet rated by the users

  Packages needed by this class  
Class Dependency Why it is needed
Tokenizer
Required
This package is used to check strings in $_POST or $_GET vars

  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
Files folder imageexamples (3 files)
Plain text file param.php Class base class
Plain text file paramList.php Class params collection for REST management
Image file input_workflow.png Data workflow for input management

  Files  /  Files folder image examples  
File Role Description
  Plain text file example01_intParam.php Example In this example we retrieve an int param setted as string but returned as integer
  Plain text file example02_boolParamFromURL.php Example In this example we retrieve an bool param from the URL
  Plain text file example03_paramList.php Example In this example we use paramList and retrieve current minimized state

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