Re: ext/filter, Final API proposal

From: Date: Sat, 16 Sep 2006 15:35:22 +0000
Subject: Re: ext/filter, Final API proposal
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-25734@lists.php.net to get a copy of this message
On 16/09/06, Pierre <pierre.php@gmail.com> wrote: <snip>
Proposal: ********** I. Availalbe functions: ------------------- * input_get Gets variable from outside PHP or from a userland variable and optionally filters it using one filter and its options or flags. It accepts only scalar by default, array can be returned using ALLOW_ARRAY. * input_get_args Gets multiple variables from outside PHP or from a userland variable and optionally filters them using different filters and options/flags. It accepts only scalar by default, array can be returned using ALLOW_ARRAY. * input_has_variable Checks if variable of specified type exists. * input_name_to_filter Returns the filter ID belonging to a named filter
Minor: Can this be something like 'input_identify_filter' or 'input_id_filter'? The current name of the function doesn't suggest to me that I'm going to get an ID back; it currently sounds like I'm sending a name into a filter.
* input_ filters_ list Returns a list of all supported filters
Minor: the general structure of the function names are <prefix>_<verb>_<noun>, so it would be more consistent if this was 'input_list_filters'. Overall: +1 (with bonus points if you go with <prefix>_<verb>_<noun> for the two identified cases) Dan

« previous php.internals (#25734) next »