PHP 클래스 PhpOrient\Protocols\Binary\Abstracts\Operation

상속: implements PhpOrient\Protocols\Common\ConfigurableInterface, use trait PhpOrient\Protocols\Common\ConfigurableTrait
파일 보기 프로젝트 열기: ostico/phporient

보호된 프로퍼티들

프로퍼티 타입 설명
$_callback Closur\Closure | string Callback function to apply on Async records when they are fetched
$_input_buffer of read stream
$_output_buffer of read stream
$_socket The socket to write to.
$_transport PhpOrient\Protocols\Binary\SocketTransport
$_writeStack array Stack of elements to compile
$opCode The op code.

공개 메소드들

메소드 설명
__construct ( PhpOrient\Protocols\Binary\SocketTransport $_transport ) Class constructor
_read_sync ( ) : array | null Read sync command payloads
getResponse ( ) : mixed Get Response from Server
prepare ( ) Build the operation payload
send ( ) Send message to orient server

보호된 메소드들

메소드 설명
_checkConditions ( PhpOrient\Protocols\Binary\SocketTransport $transport ) : null | void
_dump_streams ( ) Log of input/output stream
_pushReceived ( $command_id, $payload ) Default callback for received push Notices
_read ( ) : mixed Read the response from the socket.
_readBoolean ( ) : boolean Read a boolean from the socket.
_readByte ( ) : integer Read a byte from the socket.
_readBytes ( ) : string | null Read bytes from the socket.
_readChar ( ) : integer Read a character from the socket.
_readError ( ) : PhpOrient\Exceptions\PhpOrientException Read an error from the remote server and turn it into an exception.
_readHeader ( ) Read the response header.
_readInt ( ) : integer Read an integer from the socket.
_readLong ( ) : integer Read a long from the socket.
_readRecord ( ) : array The format depends if a RID is passed or an entire record with its content.
_readSerialized ( ) : mixed Read a serialized object from the remote server.
_readShort ( ) : integer Read a short from the socket.
_readString ( ) : string | null Read a string from the socket.
_read_prefetch_record ( ) : Record[] Read pre-fetched and async Records
_write ( ) Write the data to the socket.
_writeBoolean ( boolean $value ) Write a boolean to the socket.
_writeByte ( integer $value ) Write a byte to the socket.
_writeBytes ( string $value ) Write bytes to the socket.
_writeChar ( string $value ) Write a character to the socket.
_writeHeader ( ) Write the request header.
_writeInt ( integer $value ) Write an integer to the socket.
_writeLong ( integer $value ) Write a long to the socket.
_writeShort ( integer $value ) Write a short to the socket.
_writeString ( string $value ) Write a string to the socket.

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( PhpOrient\Protocols\Binary\SocketTransport $_transport )
$_transport PhpOrient\Protocols\Binary\SocketTransport

_checkConditions() 보호된 메소드

protected _checkConditions ( PhpOrient\Protocols\Binary\SocketTransport $transport ) : null | void
$transport PhpOrient\Protocols\Binary\SocketTransport
리턴 null | void

_dump_streams() 보호된 메소드

Log of input/output stream
protected _dump_streams ( )

_pushReceived() 보호된 메소드

Default callback for received push Notices
protected _pushReceived ( $command_id, $payload )
$command_id
$payload

_read() 추상적인 보호된 메소드

Read the response from the socket.
abstract protected _read ( ) : mixed
리턴 mixed the response.

_readBoolean() 보호된 메소드

Read a boolean from the socket.
protected _readBoolean ( ) : boolean
리턴 boolean the boolean read

_readByte() 보호된 메소드

Read a byte from the socket.
protected _readByte ( ) : integer
리턴 integer the byte read

_readBytes() 보호된 메소드

Read bytes from the socket.
protected _readBytes ( ) : string | null
리턴 string | null the bytes read, or null if it's empty.

_readChar() 보호된 메소드

Read a character from the socket.
protected _readChar ( ) : integer
리턴 integer the character read

_readError() 보호된 메소드

Read an error from the remote server and turn it into an exception.
protected _readError ( ) : PhpOrient\Exceptions\PhpOrientException
리턴 PhpOrient\Exceptions\PhpOrientException the wrapped exception object.

_readHeader() 보호된 메소드

Read the response header.
protected _readHeader ( )

_readInt() 보호된 메소드

Read an integer from the socket.
protected _readInt ( ) : integer
리턴 integer the integer read

_readLong() 보호된 메소드

Read a long from the socket.
protected _readLong ( ) : integer
리턴 integer the integer read

_readRecord() 보호된 메소드

In case of null record then -2 as short is passed. In case of RID -3 is passes as short and then the RID: (-3:short)(cluster-id:short)(cluster-position:long). In case of record: (0:short)(record-type:byte)(cluster-id:short) (cluster-position:long)(record-version:int)(record-content:bytes)
protected _readRecord ( ) : array
리턴 array

_readSerialized() 보호된 메소드

Read a serialized object from the remote server.
protected _readSerialized ( ) : mixed
리턴 mixed

_readShort() 보호된 메소드

Read a short from the socket.
protected _readShort ( ) : integer
리턴 integer the short read

_readString() 보호된 메소드

Read a string from the socket.
protected _readString ( ) : string | null
리턴 string | null the string read, or null if it's empty.

_read_prefetch_record() 보호된 메소드

Read pre-fetched and async Records
protected _read_prefetch_record ( ) : Record[]
리턴 PhpOrient\Protocols\Binary\Data\Record[]

_read_sync() 공개 메소드

Read sync command payloads
public _read_sync ( ) : array | null
리턴 array | null

_write() 추상적인 보호된 메소드

Write the data to the socket.
abstract protected _write ( )

_writeBoolean() 보호된 메소드

Write a boolean to the socket.
protected _writeBoolean ( boolean $value )
$value boolean

_writeByte() 보호된 메소드

Write a byte to the socket.
protected _writeByte ( integer $value )
$value integer

_writeBytes() 보호된 메소드

Write bytes to the socket.
protected _writeBytes ( string $value )
$value string

_writeChar() 보호된 메소드

Write a character to the socket.
protected _writeChar ( string $value )
$value string

_writeHeader() 보호된 메소드

Write the request header.
protected _writeHeader ( )

_writeInt() 보호된 메소드

Write an integer to the socket.
protected _writeInt ( integer $value )
$value integer

_writeLong() 보호된 메소드

Write a long to the socket.
protected _writeLong ( integer $value )
$value integer

_writeShort() 보호된 메소드

Write a short to the socket.
protected _writeShort ( integer $value )
$value integer

_writeString() 보호된 메소드

Write a string to the socket.
protected _writeString ( string $value )
$value string

getResponse() 공개 메소드

Get Response from Server
public getResponse ( ) : mixed
리턴 mixed

prepare() 공개 메소드

Build the operation payload
public prepare ( )

send() 공개 메소드

Send message to orient server
public send ( )

프로퍼티 상세

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

Callback function to apply on Async records when they are fetched
protected Closure,Closur|string $_callback
리턴 Closur\Closure | string

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

of read stream
protected $_input_buffer

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

of read stream
protected $_output_buffer

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

The socket to write to.
protected $_socket

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

protected SocketTransport,PhpOrient\Protocols\Binary $_transport
리턴 PhpOrient\Protocols\Binary\SocketTransport

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

Stack of elements to compile
protected array $_writeStack
리턴 array

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

The op code.
protected $opCode