ZF-620: Allow specifying default return values for HTTP request superglobal accessors

Description

In Zend_Controller_Request_Http, allow the various get*() methods to return a specified default value:


public function getQuery($key = null, $default = null)
{
    if (null === $key) {
        return $_GET;
    }
    return (isset($_GET[$key])) ? $_GET[$key] : $default;
}

Comments

Done in revision 2116.