\GravityClientConfig

Summary

Methods
Properties
Constants
__construct()
$forwardClientInfo
$remoteUrl
$timeoutSeconds
$verifyPeer
$user
$password
$retryMethods
$verbose
$retry
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$forwardClientInfo

$forwardClientInfo : boolean

Forwards the user-agent, referrer, browser language and client IP to the recommendation engine.

Default value is true;

Type

boolean

$remoteUrl

$remoteUrl : string

The URL of the server side interface. It has no default value, must be specified.

Strings in the PHP client are always UTF-8 encoded.

Type

string

$timeoutSeconds

$timeoutSeconds : integer

The timeout for the operations in seconds. The default value is 3 seconds.

Double values are supported after PHP version 5.2.3 (uses miliseconds timeout)

Type

integer

$verifyPeer

$verifyPeer : boolean

The setting of cURL option <code>CURLOPT_SSL_VERIFYPEER</code> in case of https connection.

Set it to false if your server could not accept our certificate. The default value is true. Leave it blank in case of http connection.

Type

boolean

$user

$user : string

The user name for the http authenticated connection. Leave it blank in case of connection without authentication.

Type

string

$password

$password : string

The password for the http authenticated connection. Leave it blank in case of connection without authentication.

Type

string

$retryMethods

$retryMethods : \array(string)

The list of method names which should be retried after communication error.

Type

\array(string)

$verbose

$verbose : boolean

More verbose error messages in case of error.

Type

boolean

$retry

$retry : integer

If > 1 enables retry for the methods specified in $retryMethods.

Type

integer

Methods

__construct()

__construct()