\Pop\Mail\Transport\Smtp\Stream\FilterByteArrayReplacement

Byte array replacement filter class

Summary

Methods
Properties
Constants
__construct()
shouldBuffer()
filter()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$search
$replace
$index
$tree
$treeMaxLen
$repSize
N/A

Properties

$search

$search : array

The needle(s) to search for

Type

array

$replace

$replace : array

The replacement(s) to make

Type

array

$index

$index : integer

The Index for searching

Type

integer

$tree

$tree : array

The Search Tree

Type

array

$treeMaxLen

$treeMaxLen : integer

Gives the size of the largest search

Type

integer

$repSize

$repSize : array

Replace size

Type

array

Methods

__construct()

__construct(array  $search, array  $replace) 

Create a new ByteArrayReplacementFilter with $search and $replace

Parameters

array $search
array $replace

shouldBuffer()

shouldBuffer(array  $buffer) : boolean

Returns true if based on the buffer passed more bytes should be buffered

Parameters

array $buffer

Returns

boolean

filter()

filter(array  $buffer, integer  $minReplaces = -1) : array

Perform the actual replacements on $buffer and return the result

Parameters

array $buffer
integer $minReplaces

Returns

array