Official Riak Client for PHP
  • Namespace
  • Class
  • Tree

Namespaces

  • Basho
    • Riak
      • Api
        • Http
          • Translator
      • Command
        • Bucket
        • Builder
          • MapReduce
          • Search
          • TimeSeries
        • DataType
          • Counter
          • Map
          • Set
        • Indexes
        • MapReduce
        • Object
        • Search
          • Index
          • Schema
        • Stats
        • TimeSeries
          • Query
      • DataType
      • Node
        • Builder
      • Search
      • TimeSeries

Classes

  • Api
  • Bucket
  • Command
  • DataType
  • Location
  • Node
  • Object

Interfaces

  • ApiInterface
  • CommandInterface

Traits

  • HeadersTrait

Exceptions

  • Exception

Class Object

Main class for data objects in Riak

Namespace: Basho\Riak
Author: Christopher Mancini
Located at Riak/Object.php

Methods summary

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

Parameters

$data
$headers
DEPRECATED
public
# getData( )
public
# setData( $data )
public
# getContentType( )
public
# setContentType( string $content_type )

Parameters

$content_type

Returns


$this
public string
# getContentEncoding( )

Returns

string
public
# setContentEncoding( string $content_encoding )

Parameters

$content_encoding

Returns


$this
public string
# getCharset( )

Returns

string
public
# setCharset( string $charset )

Parameters

$charset

Returns


$this
public
# getVclock( )
public
# setVclock( string $vclock )

Parameters

$vclock

Returns


$this
public
# getIndexes( )
public
# getIndex( $indexName )
public
# addValueToIndex( $indexName, $value )
public
# removeValueFromIndex( $indexName, $value )
public
# setMetaDataValue( $key, $value = '' )
public
# getMetaDataValue( $key )
public
# removeMetaDataValue( $key )
public
# getMetaData( )

Properties summary

protected mixed|null $data

Stored data or object

Stored data or object

# null
protected array $indexes
# []
protected string $vclock
# ''
protected string $content_type
# 'text/plain'
protected string $content_encoding
# 'utf-8'
protected string $charset
# 'utf-8'
protected array $metadata
# []
Official Riak Client for PHP API documentation generated by ApiGen