protected function _getUpdateMethod()
    {
        // Caches the result
        if ($this->updateMethod === null) {
            if ($this->localFile !== null) {
                $this->updateMethod = self::UPDATE_LOCAL;
            } elseif (ini_get('allow_url_fopen') && function_exists('file_get_contents')) {
                $this->updateMethod = self::UPDATE_FOPEN;
            } elseif (function_exists('fsockopen')) {
                $this->updateMethod = self::UPDATE_FSOCKOPEN;
            } elseif (extension_loaded('curl')) {
                $this->updateMethod = self::UPDATE_CURL;
            } else {
                $this->updateMethod = false;
            }
        }

        return $this->updateMethod;
    }
protected function _getUpdateMethod()
    {
        // Caches the result
        if ($this->updateMethod === null) {
            if ($this->localFile !== null) {
                $this->updateMethod = self::UPDATE_LOCAL;
            } elseif (ini_get('allow_url_fopen') && function_exists('file_get_contents')) {
                $this->updateMethod = self::UPDATE_FOPEN;
            } elseif (function_exists('fsockopen')) {
                $this->updateMethod = self::UPDATE_FSOCKOPEN;
            } elseif (extension_loaded('curl')) {
                $this->updateMethod = self::UPDATE_CURL;
            } else {
                $this->updateMethod = false;
            }
        }

        return $this->updateMethod;
    }
protected function _getUpdateMethod ( ) { // Caches the result if ( $ this -> updateMethod === null ) { if ( $ this -> localFile !== null ) { $ this -> updateMethod = self :: UPDATE_LOCAL ; } elseif ( ini_get ( 'allow_url_fopen' ) && function_exists ( 'file_get_contents' ) ) { $ this -> updateMethod = self :: UPDATE_FOPEN ; } elseif ( function_exists ( 'fsockopen' ) ) { $ this -> updateMethod = self :: UPDATE_FSOCKOPEN ; } elseif ( extension_loaded ( 'curl' ) ) { $ this -> updateMethod = self :: UPDATE_CURL ; } else { $ this -> updateMethod = false ; } } return $ this -> updateMethod ; }
Checks for the various possibilities offered by the current configuration
of PHP to retrieve external HTTP data

@return string the name of function to use to retrieve the file
Checks for the various possibilities offered by the current configuration of PHP to retrieve external HTTP data