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

$command = (new Command\Builder\StoreObject($riak)) ->buildObject('{"firstName":"John","lastName":"Doe","email":"[email protected]"}') ->buildBucket('users') ->build(); $response = $command->execute(); $user_location = $response->getLocation();
상속: 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

공개 메소드들

메소드 설명
build ( ) : Basho\Riak\Command\Object\Store
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.

메소드 상세

build() 공개 메소드

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

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