Свойство | Type | Description | |
---|---|---|---|
$adminAPIKey | string | ||
$algoliaUserToken | string | ||
$apiKey | string | ||
$applicationID | string | ||
$connectTimeout | integer | ||
$curlMHandle | resource | ||
$endUserIP | string | ||
$readHostsArray | array | ||
$writeHostsArray | array |
Méthode | Description | |
---|---|---|
__construct ( string $applicationID, string $apiKey, array $hostsArray, boolean $placesEnabled = false ) | ClientContext constructor. | |
__destruct ( ) | Closes eventually opened curl handles. | |
disableRateLimit ( ) | Disables the rate limit. | |
getMHandle ( $curlHandle ) : resource | ||
releaseMHandle ( $curlHandle ) | ||
setAlgoliaUserToken ( string $token ) | ||
setExtraHeader ( string $key, string $value ) | ||
setForwardedFor ( string $ip ) | ||
setRateLimit ( string $adminAPIKey, string $endUserIP, string $rateLimitAPIKey ) |
Méthode | Description | |
---|---|---|
getDefaultReadHosts ( boolean $placesEnabled ) : array | ||
getDefaultWriteHosts ( ) : array |
public getMHandle ( $curlHandle ) : resource | ||
$curlHandle | ||
Résultat | resource |
public setExtraHeader ( string $key, string $value ) | ||
$key | string | |
$value | string |