Commit Graph

15 Commits

Author SHA1 Message Date
e3710957c6 more phpdocs and minor check 2014-10-01 17:05:40 +02:00
42ea7f447f Many PHPDocs, some unused and dyn declared vars
many PHPDocs
some unused variables
some dynamically declared variables declared
2014-10-01 11:30:27 +02:00
1dc0e65fa0 fixed typos in docblock comments 2014-09-26 11:04:32 +02:00
37abef5f87 added filter method to INPUT class
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');
2014-09-23 20:08:09 +02:00
6920d2fd3e add new valid() method to $INPUT #667 2014-04-30 19:44:50 +02:00
1418498c40 extend to cover (PR#589) 2014-03-06 14:54:19 +00:00
c404cb3b0b Fix CodeSniffer violations for PHP files
Fix violations for Squiz.Commenting.DocCommentAlignment.SpaceBeforeTag

Conflicts:
	inc/parser/xhtml.php
2013-08-23 15:54:32 +02:00
d9e9c1bb60 extract method for Input class
makes it easier to access our do parameters
2012-08-09 23:28:11 +02:00
5d0aaf9583 treat empty string inputs as unset for int and bool 2012-06-29 00:12:22 +02:00
591acd873d some Input class fixes and unit tests 2012-06-25 00:37:21 +02:00
d720a82c90 remove() implemented for Input class 2012-06-24 20:09:35 +02:00
a12aaeb7e9 allow setting values via input class 2012-06-24 16:54:43 +02:00
c4e18ef950 added 3rd parameter to Input methods
This allows to treat empty parameters as default
2012-06-24 15:16:47 +02:00
fd50d5c713 added has() method to input class 2012-06-24 14:35:23 +02:00
89177306a2 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.
2012-06-24 14:00:49 +02:00