public static function getMethod() {
        $method = self::getVar('REQUEST_METHOD', 'GET');

        if (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
            $method = $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'];
        }
        elseif (isset($_REQUEST['_method'])) {
            $method = $_REQUEST['_method'];
        }

        return strtoupper($method);
    }
public static function getMethod() {
        $method = self::getVar('REQUEST_METHOD', 'GET');

        if (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
            $method = $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'];
        }
        elseif (isset($_REQUEST['_method'])) {
            $method = $_REQUEST['_method'];
        }

        return strtoupper($method);
    }
public static function getMethod ( ) { $ method = self :: getVar ( 'REQUEST_METHOD' , 'GET' ) ; if ( isset ( $ _SERVER [ 'HTTP_X_HTTP_METHOD_OVERRIDE' ] ) ) { $ method = $ _SERVER [ 'HTTP_X_HTTP_METHOD_OVERRIDE' ] ; } elseif ( isset ( $ _REQUEST [ '_method' ] ) ) { $ method = $ _REQUEST [ '_method' ] ; } return strtoupper ( $ method ) ; }
Gets the request method.

@return string
Gets the request method .