Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | extract method for Input class | Andreas Gohr | 2012-08-09 |
| | | | | makes it easier to access our do parameters | ||
* | treat empty string inputs as unset for int and bool | Andreas Gohr | 2012-06-29 |
| | |||
* | some Input class fixes and unit tests | Andreas Gohr | 2012-06-25 |
| | |||
* | remove() implemented for Input class | Andreas Gohr | 2012-06-24 |
| | |||
* | allow setting values via input class | Andreas Gohr | 2012-06-24 |
| | |||
* | added 3rd parameter to Input methods | Andreas Gohr | 2012-06-24 |
| | | | | This allows to treat empty parameters as default | ||
* | added has() method to input class | Andreas Gohr | 2012-06-24 |
| | |||
* | Introducing a $_REQUEST/POST/GET wrapper | Andreas Gohr | 2012-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. |