PHP Interface Swift_Transport_IoBuffer, Halite

Author: Chris Corbyn
Inheritance: extends Swift_InputByteStream, extends Swift_OutputByteStream
显示文件 Open project: HaliteChallenge/Halite

Public Methods

Method Description
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.

Method Details

initialize() public method

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

readLine() public method

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
return string

setParam() public method

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

setWriteTranslations() public method

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

terminate() public method

Perform any shutdown logic needed.
public terminate ( )