protected static function getRequestMethodName()
    {
        $request_engine = self::$requestEngine;

        if ($request_engine == 'curl' && !function_exists('curl_init')) {
            trigger_error("DetectLanguage::Client - CURL not found, switching to stream");
            $request_engine = self::$requestEngine = 'stream';
        }

        switch ($request_engine) {
            case 'curl':
                return 'requestCurl';

            case 'stream':
                return 'requestStream';

            default:
                throw new Error("Invalid request engine: " . $request_engine);
        }
    }
protected static function getRequestMethodName()
    {
        $request_engine = self::$requestEngine;

        if ($request_engine == 'curl' && !function_exists('curl_init')) {
            trigger_error("DetectLanguage::Client - CURL not found, switching to stream");
            $request_engine = self::$requestEngine = 'stream';
        }

        switch ($request_engine) {
            case 'curl':
                return 'requestCurl';

            case 'stream':
                return 'requestStream';

            default:
                throw new Error("Invalid request engine: " . $request_engine);
        }
    }
protected static function getRequestMethodName ( ) { $ request_engine = self :: $ requestEngine ; if ( $ request_engine == 'curl' && ! function_exists ( 'curl_init' ) ) { trigger_error ( "DetectLanguage::Client - CURL not found, switching to stream" ) ; $ request_engine = self :: $ requestEngine = 'stream' ; } switch ( $ request_engine ) { case 'curl' : return 'requestCurl' ; case 'stream' : return 'requestStream' ; default : throw new Error ( "Invalid request engine: " . $ request_engine ) ; } }
Get request method name.

@return string
Get request method name .