Searched hist:"89177306 a2278255d6a2203b5fff4a839183d3cd" (Results 1 – 2 of 2) sorted by relevance
| /dokuwiki/inc/ |
| H A D | load.php | 89177306a2278255d6a2203b5fff4a839183d3cd Sun Jun 24 12:00:49 UTC 2012 Andreas Gohr <andi@splitbrain.org> Introducing a $_REQUEST/POST/GET wrapper
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.
|
| H A D | init.php | 89177306a2278255d6a2203b5fff4a839183d3cd Sun Jun 24 12:00:49 UTC 2012 Andreas Gohr <andi@splitbrain.org> Introducing a $_REQUEST/POST/GET wrapper
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.
|