include/SugarSearchEngine/Elastic/Elastica/Transport/Http.php

Show: inherited
Table of Contents

Elastica Http Transport object

Author
Nicolas Ruflin  
Category
Xodoa  
Package
Elastica  

\Elastica_Transport_Http

Package: Elastica

Elastica Http Transport object

Parent(s)
\Elastica_Transport_Abstract
Children
\Elastica_Transport_Https
Author
Nicolas Ruflin  
Category
Xodoa  

Properties

Propertyprotected  $_config= ''
inheritedInherited from: \Elastica_Transport_Abstract::$$_config
Details
Type
n/a
Inherited_from
\Elastica_Transport_Abstract::$$_config  
Propertyprotectedresource  $_connection= 'null'
static

Curl resource to reuse
Default valuenullDetails
Type
resource
Propertyprotected  $_data= ''
inheritedInherited from: \Elastica_Transport_Abstract::$$_data
Details
Type
n/a
Inherited_from
\Elastica_Transport_Abstract::$$_data  
Propertyprotected  $_method= ''
inheritedInherited from: \Elastica_Transport_Abstract::$$_method
Details
Type
n/a
Inherited_from
\Elastica_Transport_Abstract::$$_method  
Propertyprotected  $_path= ''
inheritedInherited from: \Elastica_Transport_Abstract::$$_path
Details
Type
n/a
Inherited_from
\Elastica_Transport_Abstract::$$_path  
Propertyprotectedstring  $_scheme= ''http''

Http scheme
Default value'http'Details
Type
string

Methods

methodpublic__construct( \Elastica_Request $request ) : void
Parameters
Name Type Description
$request \Elastica_Request

Request object

methodprotected_getConnection( ) : resource

Returns
Type Description
resource Connection resource
methodprotected_setupCurl( resource $connection ) : void

Called to add additional curl params

Parameters
Name Type Description
$connection resource

Curl connection

methodpublicexec( string $host, int $port ) : \Elastica_Response

Makes calls to the elasticsearch server

All calls that are made to the server are done through this function

Parameters
Name Type Description
$host string

Host name

$port int

Port number

Returns
Type Description
\Elastica_Response Response object
methodpublicgetRequest( ) : \Elastica_Request
inherited

Returns the request object

Inherited from: \Elastica_Transport_Abstract::getRequest()
Returns
Type Description
\Elastica_Request Request object
Documentation was generated by DocBlox 0.18.1.