PHP Class StripLineBreaks, symfony-1.4

Example:
Or:
See also: BaseParamFilterReader
Author: hans lellelid, [email protected]
Inheritance: extends BaseParamFilterReader, implements ChainableReader
Afficher le fichier Open project: vjousse/symfony-1.4 Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
_initialize ( ) Parses the parameters to set the line-breaking characters.

Method Details

chain() public méthode

Creates a new StripLineBreaks using the passed in Reader for instantiation.
public chain ( Reader $reader ) : object
$reader Reader
Résultat object A new filter based on this configuration, but filtering the specified reader

getLineBreaks() public méthode

Gets the line-breaking characters.
public getLineBreaks ( ) : string
Résultat string A String containing all the characters that are considered as line-breaking.

read() public méthode

Returns the filtered stream, only including characters not in the set of line-breaking characters.
public read ( $len = null ) : mixed
Résultat mixed the resulting stream, or -1 if the end of the resulting stream has been reached.

setLineBreaks() public méthode

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