PHP 클래스 Basho\Riak\Object

저자: Riak team (https://github.com/basho/riak-php-client/contributors)
파일 보기 프로젝트 열기: basho/riak-php-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$charset
$content_encoding
$content_type
$data mixed | null Stored data or object
$indexes
$metadata
$raw_data mixed | null Stores raw non-decoded response data
$vclock

공개 메소드들

메소드 설명
__construct ( mixed | null $data = null, array | null $headers = [] )
addValueToIndex ( $indexName, $value )
getCharset ( ) : string
getContentEncoding ( ) : string
getContentType ( )
getData ( )
getIndex ( $indexName )
getIndexes ( )
getMetaData ( )
getMetaDataValue ( $key )
getRawData ( ) : mixed | null Getter for raw non-decoded response data [HTTP ONLY]
getVclock ( )
removeMetaDataValue ( $key )
removeValueFromIndex ( $indexName, $value )
setCharset ( string $charset )
setContentEncoding ( string $content_encoding ) Used to identify the encoding of the object data
setContentType ( string $content_type ) Used to identify the mime-type of the object data
setData ( $data )
setMetaDataValue ( $key, $value = '' )
setRawData ( mixed | null $raw_data )
setVclock ( string $vclock )

비공개 메소드들

메소드 설명
validateIndexNameAndValue ( $indexName, $value )

메소드 상세

__construct() 공개 메소드

public __construct ( mixed | null $data = null, array | null $headers = [] )
$data mixed | null
$headers array | null DEPRECATED

addValueToIndex() 공개 메소드

public addValueToIndex ( $indexName, $value )

getCharset() 공개 메소드

public getCharset ( ) : string
리턴 string

getContentEncoding() 공개 메소드

public getContentEncoding ( ) : string
리턴 string

getContentType() 공개 메소드

public getContentType ( )

getData() 공개 메소드

public getData ( )

getIndex() 공개 메소드

public getIndex ( $indexName )

getIndexes() 공개 메소드

public getIndexes ( )

getMetaData() 공개 메소드

public getMetaData ( )

getMetaDataValue() 공개 메소드

public getMetaDataValue ( $key )

getRawData() 공개 메소드

Getter for raw non-decoded response data [HTTP ONLY]
public getRawData ( ) : mixed | null
리턴 mixed | null

getVclock() 공개 메소드

public getVclock ( )

removeMetaDataValue() 공개 메소드

public removeMetaDataValue ( $key )

removeValueFromIndex() 공개 메소드

public removeValueFromIndex ( $indexName, $value )

setCharset() 공개 메소드

public setCharset ( string $charset )
$charset string

setContentEncoding() 공개 메소드

If set to base64, object data will be automatically encoded to base64 upon transfer to Riak. If set to binary or none, object data will NOT be rawurlencoded upon transfer to Riak.
public setContentEncoding ( string $content_encoding )
$content_encoding string

setContentType() 공개 메소드

If set to application/json or text/json the object data will automatically be json_encoded upon transfer to Riak.
public setContentType ( string $content_type )
$content_type string

setData() 공개 메소드

public setData ( $data )

setMetaDataValue() 공개 메소드

public setMetaDataValue ( $key, $value = '' )

setRawData() 공개 메소드

public setRawData ( mixed | null $raw_data )
$raw_data mixed | null

setVclock() 공개 메소드

public setVclock ( string $vclock )
$vclock string

프로퍼티 상세

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

protected $charset

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

protected $content_encoding

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

protected $content_type

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

Stored data or object
protected mixed|null $data
리턴 mixed | null

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

protected $indexes

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

protected $metadata

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

Stores raw non-decoded response data
protected mixed|null $raw_data
리턴 mixed | null

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

protected $vclock