PHP Интерфейс Swift_Transport_IoBuffer, Halite

Автор: Chris Corbyn
Наследование: extends Swift_InputByteStream, extends Swift_OutputByteStream
Показать файл Открыть проект

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

Метод Описание
initialize ( array $params ) Perform any initialization needed, using the given $params.
readLine ( integer $sequence ) : string Get a line of output (including any CRLF).
setParam ( string $param, mixed $value ) Set an individual param on the buffer (e.g. switching to SSL).
setWriteTranslations ( array $replacements ) Set an array of string replacements which should be made on data written to the buffer.
terminate ( ) Perform any shutdown logic needed.

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

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

Parameters will vary depending upon the type of IoBuffer used.
public initialize ( array $params )
$params array

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

The $sequence number comes from any writes and may or may not be used depending upon the implementation.
public readLine ( integer $sequence ) : string
$sequence integer of last write to scan from
Результат string

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

Set an individual param on the buffer (e.g. switching to SSL).
public setParam ( string $param, mixed $value )
$param string
$value mixed

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

This could replace LF with CRLF for example.
public setWriteTranslations ( array $replacements )
$replacements array

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

Perform any shutdown logic needed.
public terminate ( )