| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
many PHPDocs
some unused variables
some dynamically declared variables declared
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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');
|
| |
|
| |
|
|
|
|
|
|
|
| |
Fix violations for Squiz.Commenting.DocCommentAlignment.SpaceBeforeTag
Conflicts:
inc/parser/xhtml.php
|
|
|
|
| |
makes it easier to access our do parameters
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This allows to treat empty parameters as default
|
| |
|
|
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.
|