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

  • DeleteObject
  • FetchBucketProperties
  • FetchCounter
  • FetchMap
  • FetchObject
  • FetchPreflist
  • FetchSet
  • FetchStats
  • IncrementCounter
  • Ping
  • QueryIndex
  • SetBucketProperties
  • StoreObject
  • UpdateMap
  • UpdateSet

Traits

  • BucketTrait
  • IndexTrait
  • LocationTrait
  • ObjectTrait

Exceptions

  • Exception

Trait ObjectTrait

Allows easy code sharing for Object getters / setters within the Command Builders

Direct Known Users

Basho\Riak\Command\Builder\DeleteObject, Basho\Riak\Command\Builder\FetchObject, Basho\Riak\Command\Builder\StoreObject

Namespace: Basho\Riak\Command\Builder
Author: Christopher Mancini
Located at Riak/Command/Builder/ObjectTrait.php

Methods summary

public Basho\Riak\Object|null
# getObject( )

Returns

Basho\Riak\Object|null
public
# buildObject( string $data = NULL, array $headers = NULL )

Mint a new Object instance with supplied params and attach it to the Command

Mint a new Object instance with supplied params and attach it to the Command

Parameters

$data
$headers

Returns


$this
public
# withObject( Basho\Riak\Object $object )

Attach an already instantiated Object to the Command

Attach an already instantiated Object to the Command

Parameters

$object

Returns


$this
public
# buildJsonObject( mixed $data )

Mint a new Object instance with a json encoded string

Mint a new Object instance with a json encoded string

Parameters

$data

Returns


$this

Properties summary

protected Basho\Riak\Object|null $object
# NULL
Official Riak Client for PHP API documentation generated by ApiGen