src/OaiPmh/Communicator.php
protected function sendRequest($verb, $params)
    {
        // Set up the request:
        $this->client->resetParameters(false, false); // keep cookies/auth
        $this->client->setUri($this->baseUrl);

        // Load request parameters:
        $query = $this->client->getRequest()->getQuery();
        $query->set('verb', $verb);
        foreach ($params as $key => $value) {
            $query->set($key, $value);
        }

        // Perform request:
        return $this->client->setMethod('GET')->send();
    }
protected function sendRequest($verb, $params)
    {
        // Set up the request:
        $this->client->resetParameters(false, false); // keep cookies/auth
        $this->client->setUri($this->baseUrl);

        // Load request parameters:
        $query = $this->client->getRequest()->getQuery();
        $query->set('verb', $verb);
        foreach ($params as $key => $value) {
            $query->set($key, $value);
        }

        // Perform request:
        return $this->client->setMethod('GET')->send();
    }
protected function sendRequest ( $ verb , $ params ) { // Set up the request: $ this -> client -> resetParameters ( false , false ) ; // keep cookies/auth $ this -> client -> setUri ( $ this -> baseUrl ) ; // Load request parameters: $ query = $ this -> client -> getRequest ( ) -> getQuery ( ) ; $ query -> set ( 'verb' , $ verb ) ; foreach ( $ params as $ key => $ value ) { $ query -> set ( $ key , $ value ) ; } // Perform request: return $ this -> client -> setMethod ( 'GET' ) -> send ( ) ; }
Perform a single OAI-PMH request.

@param string $verb   OAI-PMH verb to execute.
@param array  $params GET parameters for ListRecords method.

@return string
Perform a single OAI - PMH request .