public function getParam($name, $default = null)
    {
        if (is_array($name)) {
            return TreeTools::getByPath($this->components[self::QUERY], $name, $default);
        }
        if (isset($this->components[self::QUERY][$name])) {
            return $this->components[self::QUERY][$name];
        }

        return $default;
    }
public function getParam($name, $default = null)
    {
        if (is_array($name)) {
            return TreeTools::getByPath($this->components[self::QUERY], $name, $default);
        }
        if (isset($this->components[self::QUERY][$name])) {
            return $this->components[self::QUERY][$name];
        }

        return $default;
    }
public function getParam ( $ name , $ default = null ) { if ( is_array ( $ name ) ) { return TreeTools :: getByPath ( $ this -> components [ self :: QUERY ] , $ name , $ default ) ; } if ( isset ( $ this -> components [ self :: QUERY ] [ $ name ] ) ) { return $ this -> components [ self :: QUERY ] [ $ name ] ; } return $ default ; }
Returns a parameter from the query string. Allows an array to traverse a tree of key names.

@param string|array $name
@param mixed $default
@return mixed
Returns a parameter from the query string . Allows an array to traverse a tree of key names .