From cb09b6c255842eb2ea2b4faeb3c0d71903e1f53f Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 20 Oct 2006 01:48:13 +0000 Subject: [PATCH] - filter api shakeup 2/2 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@222048 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filter/configure.xml | 4 +- reference/filter/constants.xml | 76 ++++++++++++++++++++++------------ reference/filter/ini.xml | 4 +- 3 files changed, 53 insertions(+), 31 deletions(-) diff --git a/reference/filter/configure.xml b/reference/filter/configure.xml index f9174e4823..f2f67e901f 100644 --- a/reference/filter/configure.xml +++ b/reference/filter/configure.xml @@ -1,11 +1,11 @@ - +
&reftitle.install; A short installation note: just type -$ pear install filter +$ pecl install filter in your console. diff --git a/reference/filter/constants.xml b/reference/filter/constants.xml index 68e996045e..970b45dc26 100644 --- a/reference/filter/constants.xml +++ b/reference/filter/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; @@ -68,17 +68,19 @@ SESSION variables. + (not implemented yet) - INPUT_DATA + INPUT_REQUEST (integer) - User-defined set of variables. + REQUEST variables. + (not implemented yet) @@ -93,6 +95,50 @@ + + + FILTER_REQUIRE_SCALAR + (integer) + + + + Flag used to require scalar as input + + + + + + FILTER_REQUIRE_ARRAY + (integer) + + + + Require an array as input. + + + + + + FILTER_FORCE_ARRAY + (integer) + + + + Always returns an array. + + + + + + FILTER_NULL_ON_FAILURE + (integer) + + + + Use NULL instead of FALSE on failure. + + + FILTER_VALIDATE_INT @@ -302,30 +348,6 @@ - - - FILTER_FLAG_SCALAR - (integer) - - - - Allow scalar types (non-array) only in filter. - Currently used by input_get_args. - - - - - - FILTER_FLAG_ARRAY - (integer) - - - - Only allow array type in filter. - Currently used by input_get_args. - - - FILTER_FLAG_ALLOW_OCTAL diff --git a/reference/filter/ini.xml b/reference/filter/ini.xml index 4762c55c3e..1a69cdf8d8 100644 --- a/reference/filter/ini.xml +++ b/reference/filter/ini.xml @@ -1,5 +1,5 @@ - +
&reftitle.runtime; &extension.runtime; @@ -46,7 +46,7 @@ Filter all $_GET, $_POST, $_COOKIE and $_REQUEST data by this filter. - Original data can be accessed through input_get. + Original data can be accessed through filter_input.