-- Ralph Schindler <[EMAIL PROTECTED]> wrote
(on Friday, 10 November 2006, 02:10 PM -0600):
> > > > > setParam($name, null) would clear a single value, though the array key
> > > > > would still exist; I'll modify the code to unset if a null value is
> > > > > passed.
>
> For the sake of clarity, what you do above is the english language
> equivalent of a double negative; this reads: set my param $name to not set.
>
> Why not just have an unsetParam() & hasParam() method and complete the
> accessor paradigm?
The final implementation I went with was to modify the already existent
clearParams() method to allow accepting a single value, and then perform a
different action based on that value:
* null: clear all parameters
* string: clear parameter named by that string key
* array: clear each parameter as named in array
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/