PHP 클래스 Basho\Riak\Command\Builder\FetchObject

$command = (new Command\Builder\FetchObject($riak)) ->buildLocation($user_id, 'users', 'default') ->build(); $response = $command->execute(); $user = $response->getObject();
상속: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait ObjectTrait, use trait Basho\Riak\Command\Builder\LocationTrait
파일 보기 프로젝트 열기: basho/riak-php-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$decodeAsAssociative boolean

공개 메소드들

메소드 설명
__construct ( Riak $riak )
build ( ) : Basho\Riak\Command\Object\Fetch;
getDecodeAsAssociative ( ) : boolean Fetch the setting for decodeAsAssociative.
validate ( )
withDecodeAsAssociative ( ) Tells the client to decode the data as an associative array instead of a PHP stdClass object.

메소드 상세

__construct() 공개 메소드

public __construct ( Riak $riak )
$riak Basho\Riak

build() 공개 메소드

public build ( ) : Basho\Riak\Command\Object\Fetch;
리턴 Basho\Riak\Command\Object\Fetch;

getDecodeAsAssociative() 공개 메소드

Fetch the setting for decodeAsAssociative.
public getDecodeAsAssociative ( ) : boolean
리턴 boolean

validate() 공개 메소드

public validate ( )

withDecodeAsAssociative() 공개 메소드

Only works if the fetched object type is JSON.

프로퍼티 상세

$decodeAsAssociative 보호되어 있는 프로퍼티

protected bool $decodeAsAssociative
리턴 boolean