Login   Register  
PHP Classes
elePHPant
Icontem

param

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Domenico Pontari
Name: Domenico Pontari <e-mail contact>
Packages: 3 Browse all classes by Domenico Pontari Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: ???
All time rank: 188375 in Italy Italy
Week rank: 2041 Down75 in Italy Italy Equal
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Domenico Pontari  >  param  >  Download .zip .tar.gz  >  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
Version: 1.0
PHP version: 5.0
License: BSD License
All time users: 351 users
All time rank: 5803
Week users: 0 users
Week rank: 2074 Equal
 
  Groups   Rate classes User ratings   Dependencies   Applications   Files Files  

  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


  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
Accessible without login Image file input_workflow.png Data workflow for input management

  Files  /  Files folder image examples  
File Role Description
  Accessible without login Plain text file example01_intParam.php Example In this example we retrieve an int param setted as string but returned as integer
  Accessible without login Plain text file example02_boolParamFromURL.php Example In this example we retrieve an bool param from the URL
  Accessible without login 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.