Свойство | Тип | Описание | |
---|---|---|---|
$adminAPIKey | string | ||
$algoliaUserToken | string | ||
$apiKey | string | ||
$applicationID | string | ||
$connectTimeout | integer | ||
$curlMHandle | resource | ||
$endUserIP | string | ||
$readHostsArray | array | ||
$writeHostsArray | array |
Метод | Описание | |
---|---|---|
__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 ) |
Метод | Описание | |
---|---|---|
getDefaultReadHosts ( boolean $placesEnabled ) : array | ||
getDefaultWriteHosts ( ) : array |
public getMHandle ( $curlHandle ) : resource | ||
$curlHandle | ||
Результат | resource |
public setExtraHeader ( string $key, string $value ) | ||
$key | string | |
$value | string |