Skip to content

PhpOrient Protocols Binary Data ID

Domenico Lupinetti edited this page Jan 24, 2015 · 4 revisions

PhpOrient\Protocols\Binary\Data\ID

  • Class name: ID
  • Namespace: PhpOrient\Protocols\Binary\Data
  • This class implements: JsonSerializable

Properties

$cluster

    public integer $cluster

The cluster the record belongs to.

  • Visibility: public

$position

    public integer $position

The position of the record in the cluster.

  • Visibility: public

Methods

__construct

    mixed PhpOrient\Protocols\Binary\Data\ID::__construct(integer|string|array $cluster, integer $position)
# Record ID Constructor.
  • Visibility: public
Arguments
  • $cluster integer|string|array

    The cluster id, string representation or configuration object

  • $position integer

    The position in the cluster, if $cluster is an integer.

jsonSerialize

    mixed PhpOrient\Protocols\Binary\Data\ID::jsonSerialize()
(PHP 5 >= 5.4.0)

Specify data which should be serialized to JSON

  • Visibility: public

__toString

    string PhpOrient\Protocols\Binary\Data\ID::__toString()
  • Visibility: public

parseString

    array PhpOrient\Protocols\Binary\Data\ID::parseString($input)
Transform a rid string format ( '#1:2' ) to array [ cluster, position ]
  • Visibility: public
  • This method is static.
Arguments
  • $input mixed

    string

Clone this wiki locally