Property | Type | Description | |
---|---|---|---|
$_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. |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
_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 ( ) : |
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. |
public __construct ( PhpOrient\Protocols\Binary\SocketTransport $_transport ) | ||
$_transport | PhpOrient\Protocols\Binary\SocketTransport |
protected _checkConditions ( PhpOrient\Protocols\Binary\SocketTransport $transport ) : null | void | ||
$transport | PhpOrient\Protocols\Binary\SocketTransport | |
return | null | void |
protected _pushReceived ( $command_id, $payload ) | ||
$command_id | ||
$payload |
protected _readBoolean ( ) : boolean | ||
return | boolean | the boolean read |
protected _readBytes ( ) : string | null | ||
return | string | null | the bytes read, or null if it's empty. |
protected _readError ( ) : PhpOrient\Exceptions\PhpOrientException | ||
return | PhpOrient\Exceptions\PhpOrientException | the wrapped exception object. |
protected _readRecord ( ) : array | ||
return | array |
protected _readSerialized ( ) : mixed | ||
return | mixed |
protected _readShort ( ) : integer | ||
return | integer | the short read |
protected _readString ( ) : string | null | ||
return | string | null | the string read, or null if it's empty. |
protected _read_prefetch_record ( ) : |
||
return |
public _read_sync ( ) : array | null | ||
return | array | null |
protected _writeBoolean ( boolean $value ) | ||
$value | boolean |
protected _writeByte ( integer $value ) | ||
$value | integer |
protected _writeBytes ( string $value ) | ||
$value | string |
protected _writeChar ( string $value ) | ||
$value | string |
protected _writeLong ( integer $value ) | ||
$value | integer |
protected _writeShort ( integer $value ) | ||
$value | integer |
protected _writeString ( string $value ) | ||
$value | string |
protected Closure,Closur|string $_callback | ||
return | Closur\Closure | string |
protected SocketTransport,PhpOrient\Protocols\Binary $_transport | ||
return | PhpOrient\Protocols\Binary\SocketTransport |
protected array $_writeStack | ||
return | array |