PHP Класс Elastica\Transport\Guzzle

Автор: Milan Magudia ([email protected])
Наследование: extends AbstractTransport
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_guzzleClientConnection Curl resource to reuse.
$_scheme Http scheme.

Открытые методы

Метод Описание
exec ( Request $request, array $params ) : Response Makes calls to the elasticsearch server.

Защищенные методы

Метод Описание
_createPsr7Request ( Request $request, Connection $connection ) : GuzzleHttp\Psr7\Request
_getActionPath ( Request $request ) : string Builds the action path url for each request.
_getBaseUrl ( Connection $connection ) : string Builds the base url for the guzzle connection.
_getGuzzleClient ( string $baseUrl, boolean $persistent = true ) : Client Return Guzzle resource.

Описание методов

_createPsr7Request() защищенный Метод

protected _createPsr7Request ( Request $request, Connection $connection ) : GuzzleHttp\Psr7\Request
$request Elastica\Request
$connection Elastica\Connection
Результат GuzzleHttp\Psr7\Request

_getActionPath() защищенный Метод

Builds the action path url for each request.
protected _getActionPath ( Request $request ) : string
$request Elastica\Request
Результат string

_getBaseUrl() защищенный Метод

Builds the base url for the guzzle connection.
protected _getBaseUrl ( Connection $connection ) : string
$connection Elastica\Connection
Результат string

_getGuzzleClient() защищенный Метод

Return Guzzle resource.
protected _getGuzzleClient ( string $baseUrl, boolean $persistent = true ) : Client
$baseUrl string
$persistent boolean False if not persistent connection
Результат GuzzleHttp\Client

exec() публичный Метод

All calls that are made to the server are done through this function
public exec ( Request $request, array $params ) : Response
$request Elastica\Request
$params array Host, Port, ...
Результат Elastica\Response Response object

Описание свойств

$_guzzleClientConnection защищенное статическое свойство

Curl resource to reuse.
protected static $_guzzleClientConnection

$_scheme защищенное свойство

Http scheme.
protected $_scheme