Hi Matthew

I noticed that the latest commit to the dispatcher has 'setParam' and 'clearParam'. Would it be possible to supply a string or an array of strings to 'clearParam' to selectively unset them as well as the option to clear all?

E.g.

public function clearParams($name = null)
{
    if ($name === null) {
        $this->_invokeParams = array();
        return $this;
    }

    if (!is_array($name)) {
        $name = array($name);
    }

    foreach($name as $param) {
        if (isset($this->_invokeParams[$param])) {
            unset($this->_invokeParams[$param]);
        }
    }

    return $this;
}

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124


Reply via email to