Utils
category |
Basho |
---|---|
author |
Riak team (https://github.com/basho/riak-php-client/contributors) |
get_value(mixed $key, array $array, mixed $defaultValue) : mixed
mixed
Key to fetch
array
Array to fetch from
mixed
Default to return if not exists
mixed
buildRestPath($client, \Basho\Riak\Bucket $bucket = NULL, string $key = NULL, string $spec = NULL, string $params = NULL) : string
Given a Client, Bucket, Key, LinkSpec, and Params, construct and return a URL.
string
string
string
Array of key-value param pairs
string
buildIndexPath(\Basho\Riak\Riak $client, \Basho\Riak\Bucket $bucket, string $index, string|int $start, string|int $end = NULL) : string
Given a Client, Bucket, Key, LinkSpec, and Params, construct and return a URL for searching secondary indexes.
author |
Eric Stevens estevens@taglabsinc.com |
---|---|
string
string|int
string|int
string
URL
httpRequest($method, $url, $request_headers = array(), $obj = '') : array
Given a Method, URL, Headers, and Body, perform and HTTP request, and return an array of arity 2 containing an associative array of response headers and the response body.
array
parseHttpHeaders($headers) : array
Parse an HTTP Header string into an asssociative array of response headers.
array