summaryrefslogtreecommitdiff
path: root/inc/Input.class.php
Commit message (Collapse)AuthorAge
* extract method for Input classAndreas Gohr2012-08-09
| | | | makes it easier to access our do parameters
* treat empty string inputs as unset for int and boolAndreas Gohr2012-06-29
|
* some Input class fixes and unit testsAndreas Gohr2012-06-25
|
* remove() implemented for Input classAndreas Gohr2012-06-24
|
* allow setting values via input classAndreas Gohr2012-06-24
|
* added 3rd parameter to Input methodsAndreas Gohr2012-06-24
| | | | This allows to treat empty parameters as default
* added has() method to input classAndreas Gohr2012-06-24
|
* Introducing a $_REQUEST/POST/GET wrapperAndreas Gohr2012-06-24
This new wrapper ensures types are correct and accessed parameters are actually set (with custom default fallbacks). The wrapper is available in the global $INPUT variable. It accesses $_REQUEST by default. If POST or GET is required, the post and get members can be used: $INPUT->int('foo',false); // access $_REQUEST['foo'], default false $INPUT->post->int('foo'); // access $_POST['foo'], default 0 $INPUT->get->int('foo'); // access $_GET['foo'], default 0 The codebase still needs to be updated to make use of this.