public function getVar($name, $default = null)
    {
        if (array_key_exists($name, $this->vars)) {
            return $this->vars[$name];
        }

        return $default;
    }
public function getVar($name, $default = null)
    {
        if (array_key_exists($name, $this->vars)) {
            return $this->vars[$name];
        }

        return $default;
    }
public function getVar ( $ name , $ default = null ) { if ( array_key_exists ( $ name , $ this -> vars ) ) { return $ this -> vars [ $ name ] ; } return $ default ; }
Returns a query variable by name.

@param   string $name    Name of the query variable to get.
@param   string $default Default value to return if the variable is not set.

@return  array   Query variables.

@since   2.0
Returns a query variable by name .