protected function call_pluginfo_service(array $params) {

        $serviceurl = $this->get_serviceurl_pluginfo();
        $response = $this->call_service($serviceurl, $params);

        if ($response) {
            if ($response->info['http_code'] == 404) {
                // There is no such plugin found in the plugins directory.
                return false;

            } else if ($response->info['http_code'] == 200 and isset($response->data->status)
                    and $response->data->status === 'OK' and $response->data->apiver == self::APIVER
                    and isset($response->data->pluginfo)) {
                    return $this->validate_pluginfo_format($response->data->pluginfo);

            } else {
                debugging('cURL: Unexpected response', DEBUG_DEVELOPER);
                return false;
            }
        }

        return false;
    }
protected function call_pluginfo_service(array $params) {

        $serviceurl = $this->get_serviceurl_pluginfo();
        $response = $this->call_service($serviceurl, $params);

        if ($response) {
            if ($response->info['http_code'] == 404) {
                // There is no such plugin found in the plugins directory.
                return false;

            } else if ($response->info['http_code'] == 200 and isset($response->data->status)
                    and $response->data->status === 'OK' and $response->data->apiver == self::APIVER
                    and isset($response->data->pluginfo)) {
                    return $this->validate_pluginfo_format($response->data->pluginfo);

            } else {
                debugging('cURL: Unexpected response', DEBUG_DEVELOPER);
                return false;
            }
        }

        return false;
    }
protected function call_pluginfo_service ( array $ params ) { $ serviceurl = $ this -> get_serviceurl_pluginfo ( ) ; $ response = $ this -> call_service ( $ serviceurl , $ params ) ; if ( $ response ) { if ( $ response -> info [ 'http_code' ] == 404 ) { // There is no such plugin found in the plugins directory. return false ; } else if ( $ response -> info [ 'http_code' ] == 200 and isset ( $ response -> data -> status ) and $ response -> data -> status === 'OK' and $ response -> data -> apiver == self :: APIVER and isset ( $ response -> data -> pluginfo ) ) { return $ this -> validate_pluginfo_format ( $ response -> data -> pluginfo ) ; } else { debugging ( 'cURL: Unexpected response' , DEBUG_DEVELOPER ) ; return false ; } } return false ; }
Calls the pluginfo.php end-point with given parameters.

@param array $params
@return \core\update\remote_info|bool
Calls the pluginfo . php end - point with given parameters .