Class FetchObject
Used to fetch KV objects from Riak
$command = (new Command\Builder\FetchObject($riak)) ->buildLocation($user_id, 'users', 'default') ->build(); $response = $command->execute($command); $user = $response->getObject();
- Basho\Riak\Command\Builder
- Basho\Riak\Command\Builder\FetchObject implements Basho\Riak\Command\BuilderInterface uses Basho\Riak\Command\Builder\ObjectTrait, Basho\Riak\Command\Builder\LocationTrait
Namespace: Basho\Riak\Command\Builder
Author: Christopher Mancini
Located at Riak/Command/Builder/FetchObject.php
Author: Christopher Mancini
Located at Riak/Command/Builder/FetchObject.php
Methods summary
public
|
|
public
Basho\Riak\Command\Object\Fetch;
|
|
public
|
#
withDecodeAsAssociative( )
Tells the client to decode the data as an associative array instead of a PHP stdClass object. Only works if the fetched object type is JSON. |
public
boolean
|
|
public
boolean
|
Methods inherited from Basho\Riak\Command\Builder
getConnection()
,
getParameters()
,
getVerbose()
,
required()
,
withParameter()
,
withParameters()
,
withVerboseMode()
Methods used from Basho\Riak\Command\Builder\ObjectTrait
Methods used from Basho\Riak\Command\Builder\LocationTrait
Constants summary
Constants inherited from Basho\Riak\Command\BuilderInterface
Properties summary
protected
boolean
|
$decodeAsAssociative
|
#
false
|