Manual:WebRequest.php/pt-br

WebRequest
A classe WebRequest que encapsula recebendo dados passados na URL ou através de um formulário POST, removendo barras "magic quotes", retirando caracteres de entrada ilegais e normalizando seqüências Unicode. Você pode acessar o WebRequest padrão através do. Você não deve criar instâncias adicionais desta classe. Em vez disso, crie uma DerivativeRequest ou utilize FauxRequest se não houver nenhum contexto de solicitação do usuário.

Functions
... many more, this is a partial list.
 * function getVal: get a scalar or null if the parameter was not passed
 * function getInt: same as before, but the value returned is an integer
 * function getBool: same as getVal, but returns a boolean value
 * function getArray: 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.
 * function getCheck: return a boolean whether the parameter was passed, this is useful for checkboxes.
 * function getCookie: get a cookie from the $_COOKIE jar
 * function wasPosted: returns a bool whether the request was posted

FauxRequest
FauxRequest is a class extending WebRequest. Its purpose is to emulate a request with the values passed to the constructor.

Also see for an example that creates a DerivativeRequest to make an API call.