This class handles the posting to the server.

It's a simple wrapper around the HTTP_request2 library.

package midcom.services

 Methods

__construct ($factory, $index_name)

Parameters

$factory

$index_name

do_post ($xml, $optimize)

Posts the xml to the suggested url using HTTP_Request2.

Parameters

$xml

$optimize

execute ($optimize)

Parameters

$optimize

_send_request ()

 Properties

 

mixed $factory

The xml factory
 

\HTTP_Request2 $request

The HTTP_Request2 object