summaryrefslogtreecommitdiff
path: root/inc/Input.class.php
Commit message (Collapse)AuthorAge
* more phpdocs and minor checkGerrit Uitslag2014-10-01
|
* Many PHPDocs, some unused and dyn declared varsGerrit Uitslag2014-10-01
| | | | | | many PHPDocs some unused variables some dynamically declared variables declared
* fixed typos in docblock commentsAndreas Gohr2014-09-26
|
* added filter method to INPUT classAndreas Gohr2014-09-23
| | | | | | | | | | | the filter() function can be chained between the accessor and the value function to get a filtered value. When no filter allable is given in the filter() function, stripctl() is used to strip all control chars (ASCII<32) Examples: $INPUT->post->filter()->str('foobar'); $INPUT->get->filter('myfilter')->int('baz');
* add new valid() method to $INPUT #667Andreas Gohr2014-04-30
|
* extend to cover (PR#589)Christopher Smith2014-03-06
|
* Fix CodeSniffer violations for PHP filesMatt Perry2013-08-23
| | | | | | | Fix violations for Squiz.Commenting.DocCommentAlignment.SpaceBeforeTag Conflicts: inc/parser/xhtml.php
* 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.