\Pop\Mail\Transport\Smtp\Stream\FilterStringReplacement

String replacement filter

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
N/A

Properties

$search

$search : string|array

The needle(s) to search for

Type

string|array

$replace

$replace : string|array

The replacement(s) to make

Type

string|array

Methods

__construct()

__construct(string|array  $search, string|array  $replace) 

Create a new StringReplacementFilter with $search and $replace

Parameters

string|array $search
string|array $replace

shouldBuffer()

shouldBuffer(string  $buffer) : boolean

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

Parameters

string $buffer

Returns

boolean

filter()

filter(string  $buffer) : string

Perform the actual replacements on $buffer and return the result

Parameters

string $buffer

Returns

string