PHP Класс PhpOrient\Protocols\Binary\Data\Record

Наследование: implements ArrayAccess, implements JsonSerializable, implements PhpOrient\Protocols\Binary\Abstracts\SerializableInterface, use trait PhpOrient\Protocols\Common\ConfigurableTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$oClass The class this record belongs to.
$oData The raw bytes that make up the record.
$rid The record id.
$version The record version.

Открытые методы

Метод Описание
__get ( $name ) : mixed Magic Method, access directly to the Orient Record content as property
__set ( $name, $value ) Magic Method, set directly to the Orient Record content as property
__toString ( ) : string To String ( as alias of json_encode )
fromConfig ( array $options = [] ) : mixed Override the ConfigurableTrait fromConfig method to handle custom classes for records
getOClass ( ) : string | null Gets the Orient Class
getOData ( ) : string Gets the Orient Record Content
getRid ( ) : PhpOrient\Protocols\Binary\Data\ID Gets the Record ID
getVersion ( ) : integer Gets the Version
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON
offsetExists ( mixed $offset ) : boolean (PHP 5 >= 5.0.0)
Whether a offset exists
offsetGet ( mixed $offset ) : mixed (PHP 5 >= 5.0.0)
Offset to retrieve
offsetSet ( mixed $offset, mixed $value ) : void (PHP 5 >= 5.0.0)
Offset to set
offsetUnset ( mixed $offset ) : void (PHP 5 >= 5.0.0)
Offset to unset
recordSerialize ( ) : mixed Return a representation of the class that can be serialized as an PhpOrient record.
setOClass ( string $oClass ) Sets the Orient Class
setOData ( array $oData = null ) Sets the Orient Record Content
setRid ( PhpOrient\Protocols\Binary\Data\ID $rid ) Sets the Record Id
setVersion ( integer $version ) Sets the Version

Описание методов

__get() публичный Метод

Magic Method, access directly to the Orient Record content as property
public __get ( $name ) : mixed
$name
Результат mixed

__set() публичный Метод

Magic Method, set directly to the Orient Record content as property
public __set ( $name, $value )
$name
$value

__toString() публичный Метод

To String ( as alias of json_encode )
public __toString ( ) : string
Результат string

fromConfig() публичный статический Метод

Override the ConfigurableTrait fromConfig method to handle custom classes for records
public static fromConfig ( array $options = [] ) : mixed
$options array
Результат mixed

getOClass() публичный Метод

Gets the Orient Class
public getOClass ( ) : string | null
Результат string | null

getOData() публичный Метод

Gets the Orient Record Content
public getOData ( ) : string
Результат string

getRid() публичный Метод

Gets the Record ID
public getRid ( ) : PhpOrient\Protocols\Binary\Data\ID
Результат PhpOrient\Protocols\Binary\Data\ID

getVersion() публичный Метод

Gets the Version
public getVersion ( ) : integer
Результат integer

jsonSerialize() публичный Метод

(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON
public jsonSerialize ( ) : mixed
Результат mixed data which can be serialized by json_encode, which is a value of any type other than a resource.

offsetExists() публичный Метод

(PHP 5 >= 5.0.0)
Whether a offset exists
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

Результат boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet() публичный Метод

(PHP 5 >= 5.0.0)
Offset to retrieve
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

Результат mixed Can return all value types.

offsetSet() публичный Метод

(PHP 5 >= 5.0.0)
Offset to set
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

Результат void

offsetUnset() публичный Метод

(PHP 5 >= 5.0.0)
Offset to unset
public offsetUnset ( mixed $offset ) : void
$offset mixed

The offset to unset.

Результат void

recordSerialize() публичный Метод

Return a representation of the class that can be serialized as an PhpOrient record.
public recordSerialize ( ) : mixed
Результат mixed

setOClass() публичный Метод

Sets the Orient Class
public setOClass ( string $oClass )
$oClass string

setOData() публичный Метод

Sets the Orient Record Content
public setOData ( array $oData = null )
$oData array

setRid() публичный Метод

Sets the Record Id
public setRid ( PhpOrient\Protocols\Binary\Data\ID $rid )
$rid PhpOrient\Protocols\Binary\Data\ID

setVersion() публичный Метод

Sets the Version
public setVersion ( integer $version )
$version integer

Описание свойств

$oClass защищенное свойство

The class this record belongs to.
protected $oClass

$oData защищенное свойство

The raw bytes that make up the record.
protected $oData

$rid защищенное свойство

The record id.
protected $rid

$version защищенное свойство

The record version.
protected $version