public function get($name = null, $default = null, $type = null)
    {
        $get = $this->request['get'];
        gplcart_array_trim($get, true);

        if (isset($name)) {
            $result = gplcart_array_get($get, $name);
            $return = isset($result) ? $result : $default;
        } else {
            $return = $get;
        }

        gplcart_settype($return, $type, $default);
        return $return;
    }
public function get($name = null, $default = null, $type = null)
    {
        $get = $this->request['get'];
        gplcart_array_trim($get, true);

        if (isset($name)) {
            $result = gplcart_array_get($get, $name);
            $return = isset($result) ? $result : $default;
        } else {
            $return = $get;
        }

        gplcart_settype($return, $type, $default);
        return $return;
    }
public function get ( $ name = null , $ default = null , $ type = null ) { $ get = $ this -> request [ 'get' ] ; gplcart_array_trim ( $ get , true ) ; if ( isset ( $ name ) ) { $ result = gplcart_array_get ( $ get , $ name ) ; $ return = isset ( $ result ) ? $ result : $ default ; } else { $ return = $ get ; } gplcart_settype ( $ return , $ type , $ default ) ; return $ return ; }
Returns a data from GET request
@param string $name
@param mixed $default
@param null|string $type
@return mixed
Returns a data from GET request