PHP Класс Swift_StreamFilters_StringReplacementFilter, Halite

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

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

Метод Описание
__construct ( string | array $search, string | array $replace ) Create a new StringReplacementFilter with $search and $replace.
filter ( string $buffer ) : string Perform the actual replacements on $buffer and return the result.
shouldBuffer ( string $buffer ) : boolean Returns true if based on the buffer passed more bytes should be buffered.

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

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

Create a new StringReplacementFilter with $search and $replace.
public __construct ( string | array $search, string | array $replace )
$search string | array
$replace string | array

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

Perform the actual replacements on $buffer and return the result.
public filter ( string $buffer ) : string
$buffer string
Результат string

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

Returns true if based on the buffer passed more bytes should be buffered.
public shouldBuffer ( string $buffer ) : boolean
$buffer string
Результат boolean