PHP 클래스 StripLineBreaks, symfony-1.4

Example:
Or:
또한 보기: BaseParamFilterReader
저자: hans lellelid, [email protected]
상속: extends BaseParamFilterReader, implements ChainableReader
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

공개 메소드들

메소드 설명
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.