PHP Класс StripLineBreaks, symfony-1.4

Example:
Or:
См. также: BaseParamFilterReader
Автор: hans lellelid, [email protected]
Наследование: extends BaseParamFilterReader, implements ChainableReader
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
chain ( Reader $reader ) : object Creates a new StripLineBreaks using the passed in Reader for instantiation.
getLineBreaks ( ) : string Gets the line-breaking characters.
read ( $len = null ) : mixed Returns the filtered stream, only including characters not in the set of line-breaking characters.
setLineBreaks ( string $lineBreaks ) Sets the line-breaking characters.

Приватные методы

Метод Описание
_initialize ( ) Parses the parameters to set the line-breaking characters.

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

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

Creates a new StripLineBreaks using the passed in Reader for instantiation.
public chain ( Reader $reader ) : object
$reader Reader
Результат object A new filter based on this configuration, but filtering the specified reader

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

Gets the line-breaking characters.
public getLineBreaks ( ) : string
Результат string A String containing all the characters that are considered as line-breaking.

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

Returns the filtered stream, only including characters not in the set of line-breaking characters.
public read ( $len = null ) : mixed
Результат mixed the resulting stream, or -1 if the end of the resulting stream has been reached.

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

Sets the line-breaking characters.
public setLineBreaks ( string $lineBreaks )
$lineBreaks string A String containing all the characters to be considered as line-breaking.