This class can be used to sanitise GET and POST values based on expected data type rules.
It takes a list of GET and POST request parameters that it should analyse and the respective data types that it expects. Currently it supports the types: integer, double, string, boolean and array.
String values may be escaped for use in MySQL queries or display in HTML pages without further encoding by the application.
Missing or invalid values may be overwritten with default values.
Any request values that are not listed may either be removed or subject to default processing. |