From 63c68778956904c9b6e69c554fbc933bea0ed860 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 20 Oct 2006 01:47:29 +0000 Subject: [PATCH] - filter api shakeup 1/2 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@222047 c90b9560-bf6c-de11-be94-00142212c4b1 --- ...ut-has-variable.xml => filter-has-var.xml} | 6 +- ...input-name-to-filter.xml => filter-id.xml} | 8 +- .../filter/functions/filter-input-array.xml | 174 ++++++++++++++++++ .../{input-get.xml => filter-input.xml} | 36 ++-- ...input-filters-list.xml => filter-list.xml} | 14 +- ...nput-get-args.xml => filter-var-array.xml} | 34 ++-- .../{filter-data.xml => filter-var.xml} | 28 +-- 7 files changed, 225 insertions(+), 75 deletions(-) rename reference/filter/functions/{input-has-variable.xml => filter-has-var.xml} (92%) rename reference/filter/functions/{input-name-to-filter.xml => filter-id.xml} (87%) create mode 100644 reference/filter/functions/filter-input-array.xml rename reference/filter/functions/{input-get.xml => filter-input.xml} (76%) rename reference/filter/functions/{input-filters-list.xml => filter-list.xml} (83%) rename reference/filter/functions/{input-get-args.xml => filter-var-array.xml} (80%) rename reference/filter/functions/{filter-data.xml => filter-var.xml} (77%) diff --git a/reference/filter/functions/input-has-variable.xml b/reference/filter/functions/filter-has-var.xml similarity index 92% rename from reference/filter/functions/input-has-variable.xml rename to reference/filter/functions/filter-has-var.xml index b3b382afd5..b1237d9334 100644 --- a/reference/filter/functions/input-has-variable.xml +++ b/reference/filter/functions/filter-has-var.xml @@ -1,15 +1,15 @@ - + - input_has_variable + filter_has_var Checks if variable of specified type exists &reftitle.description; - boolinput_has_variable + boolfilter_has_var inttype stringvariable_name diff --git a/reference/filter/functions/input-name-to-filter.xml b/reference/filter/functions/filter-id.xml similarity index 87% rename from reference/filter/functions/input-name-to-filter.xml rename to reference/filter/functions/filter-id.xml index 9eb9bdb79c..15d86b6d7a 100644 --- a/reference/filter/functions/input-name-to-filter.xml +++ b/reference/filter/functions/filter-id.xml @@ -1,15 +1,15 @@ - + - input_name_to_filter + filter_id Returns the filter ID belonging to a named filter &reftitle.description; - intinput_name_to_filter + intfilter_id stringfiltername @@ -42,7 +42,7 @@ &reftitle.seealso; - input_filters_list + filter_list diff --git a/reference/filter/functions/filter-input-array.xml b/reference/filter/functions/filter-input-array.xml new file mode 100644 index 0000000000..627d8e1036 --- /dev/null +++ b/reference/filter/functions/filter-input-array.xml @@ -0,0 +1,174 @@ + + + + + filter_input_array + Gets multiple variables from outside PHP and optionally filters them + + + &reftitle.description; + + mixedfilter_input_array + inttype + arrayoptions + + &warn.experimental.func; + + This function is useful for retrieving many values without + repetitively calling filter_input. + + + + &reftitle.parameters; + + + + type + + + One of INPUT_GET, INPUT_POST, + INPUT_COOKIE, INPUT_SERVER, + INPUT_ENV, INPUT_SESSION, or + INPUT_DATA. + + + + + definition + + + An array defining the arguments. A valid key is a string + containing a variable name and a valid value is either a filter type, + or an array optionally specifying the filter, flags and + options. If the value is an array, valid keys are + filter which specifies the filter type, + flags which specifies any flags that apply to the + filter, and options which specifies any options + that apply to the filter. See the example below for a better + understanding. + + + + + + + + &reftitle.returnvalues; + + An array containing the values of the requested variables on success, or &false; + on failure. An array value will be &false; if the filter fails, or &null; if + the variable is not set. Or if the flag FILTER_NULL_ON_FAILURE + is used, it returns &false; if the variable is not set and &null; if the filter + fails. + + + + + &reftitle.examples; + + + A <function>filter_input_array</function> example + + 'libgd