PHP 클래스 ChainReaderHelper, symfony-1.4

Here, the interesting method is 'getAssembledReader'. The purpose of this one is to create a simple Reader object which apply all filters on another primary Reader object. For example : In copyFile (phing.util.FileUtils) the primary Reader is a FileReader object (more accuratly, a BufferedReader) previously setted for the source file to copy. So, consider this filterchain : getAssembledReader will return a Reader object wich read on each of these filters. Something like this : ('->' = 'which read data from') : [TABTOSPACES] -> [LINECONTAINS] -> [STRIPPHPCOMMENTS] -> [FILEREADER] (primary reader) So, getAssembledReader will return the TABTOSPACES Reader object. Then each read done with this Reader object will follow this path. Hope this explanation is clear :) TODO: Implement the classPath feature.
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

공개 메소드들

메소드 설명
getAssembledReader ( ) * Assemble the reader
getProject ( ) * Get the project
setBufferSize ( $size ) * Sets the buffer size to be used. Defaults to 8192, if this method is not invoked.
setFilterChains ( &$fchain ) * Sets the collection of filter reader sets
setPrimaryReader ( Reader $reader ) * Sets the primary reader
setProject ( Project $project ) * Set the project to work with

메소드 상세

getAssembledReader() 공개 메소드

* Assemble the reader
public getAssembledReader ( )

getProject() 공개 메소드

* Get the project
public getProject ( )

setBufferSize() 공개 메소드

* Sets the buffer size to be used. Defaults to 8192, if this method is not invoked.
public setBufferSize ( $size )

setFilterChains() 공개 메소드

* Sets the collection of filter reader sets
public setFilterChains ( &$fchain )

setPrimaryReader() 공개 메소드

* Sets the primary reader
public setPrimaryReader ( Reader $reader )
$reader Reader

setProject() 공개 메소드

* Set the project to work with
public setProject ( Project $project )
$project Project