Manual:WebRequest.php/fr

Détails
The WebRequest class which encapsulates getting at data passed in the URL or via a POSTed form, handling remove of "magic quotes" slashes, stripping illegal input characters and normalizing Unicode sequences.

You can access the standard WebRequest through.

You should not create additional instances of this class.

Instead create a DerivativeRequest or use FauxRequest if there is no user request context.

Fonctions
... many more, this is a partial list.
 * : obtenez un scalaire ou nul si le paramètre n'avait pas été réussi
 * : même comme avant, mais la valeur retourné est un nombre entier
 * : même comme getVal, mais renvoi une valeur booléenne
 * : get an array or null if the parameter was not passed. If the parameter is a scalar, it will return an array with a single element.
 * : return a boolean whether the parameter was passed, this is useful for checkboxes.
 * : get a cookie from the $_COOKIE jar
 * : returns a bool whether the request was posted

WebRequestUpload
WebRequestUpload is an object to access the $_FILES array. It should only be called by WebRequest. A WebRequestUpload object is generated by WebRequest::getUpload.

FauxRequest
FauxRequest is a class extending WebRequest. Its purpose is to emulate a request for testing or prototyping. FauxRequest should be avoided in production code.

Also see for an example.