\SRestClient

Summary

Methods
Properties
Constants
init()
addServers()
addServer()
getServer()
setConfigFile()
getConfigFile()
getConfig()
useConfig()
addRequest()
request()
reset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_sort()
hash()
$_servers
$_serverCt
$_config
$_requests
N/A

Properties

$_servers

$_servers : 

Type

$_serverCt

$_serverCt : 

Type

$_config

$_config : 

Type

$_requests

$_requests : 

Type

Methods

init()

init(  $params = array()) 

Parameters

$params

addServers()

addServers(array  $servers) 

Parameters

array $servers

addServer()

addServer(  $host,   $path = "",   $weight = 1,   $timeout = 1) 

consistent hashing

Parameters

$host
$path
$weight
$timeout

getServer()

getServer(  $key) 

Parameters

$key

setConfigFile()

setConfigFile(  $file) 

Parameters

$file

getConfigFile()

getConfigFile() 

getConfig()

getConfig(string  $zone) : array

Parameters

string $zone

Returns

array

useConfig()

useConfig(  $zone) 

Parameters

$zone

addRequest()

addRequest(  $zone = "default",   $parameters = array(),   $key = null,   $method = "GET") 

Parameters

$zone
$parameters
$key
$method

request()

request() 

reset()

reset() 

_sort()

_sort(  $a,   $b) 

Parameters

$a
$b

hash()

hash(  $str) 

Parameters

$str