PHP 클래스 BaseFilterReader, symfony-1.4

또한 보기: FilterReader
상속: extends FilterReader
파일 보기 프로젝트 열기: vjousse/symfony-1.4

보호된 프로퍼티들

프로퍼티 타입 설명
$initialized Have the parameters passed been interpreted?
$project The Phing project this filter is part of.

공개 메소드들

메소드 설명
__construct ( Reader $in = null ) Constructor used by Phing's introspection mechanism.
eof ( ) : boolean Returns whether the end of file has been reached with input stream.
getInitialized ( ) : boolean Returns the initialized status.
getProject ( ) : object Returns the project this filter is part of.
log ( string $msg, integer $level = Project::MSG_INFO ) Convenience method to support logging in filters.
read ( $len = null ) : Characters Reads characters.
readLine ( ) : the Reads a line of text ending with '\n' (or until the end of the stream).
setInitialized ( boolean $initialized ) Sets the initialized status.
setProject ( Project $project ) Sets the project to work with.

메소드 상세

__construct() 공개 메소드

The original filter reader is only used for chaining purposes, never for filtering purposes (and indeed it would be useless for filtering purposes, as it has no real data to filter). ChainedReaderHelper uses this placeholder instance to create a chain of real filters.
public __construct ( Reader $in = null )
$in Reader

eof() 공개 메소드

Returns whether the end of file has been reached with input stream.
public eof ( ) : boolean
리턴 boolean

getInitialized() 공개 메소드

Returns the initialized status.
public getInitialized ( ) : boolean
리턴 boolean whether or not the filter is initialized

getProject() 공개 메소드

Returns the project this filter is part of.
public getProject ( ) : object
리턴 object The project this filter is part of

log() 공개 메소드

Convenience method to support logging in filters.
public log ( string $msg, integer $level = Project::MSG_INFO )
$msg string Message to log.
$level integer Priority level.

read() 공개 메소드

Reads characters.
public read ( $len = null ) : Characters
리턴 Characters read, or -1 if the end of the stream has been reached

readLine() 공개 메소드

The returned String retains the '\n'.
public readLine ( ) : the
리턴 the line read, or null if the end of the stream has already been reached

setInitialized() 공개 메소드

Sets the initialized status.
public setInitialized ( boolean $initialized )
$initialized boolean Whether or not the filter is initialized.

setProject() 공개 메소드

Sets the project to work with.
public setProject ( Project $project )
$project Project The project this filter is part of. Should not be null.

프로퍼티 상세

$initialized 보호되어 있는 프로퍼티

Have the parameters passed been interpreted?
protected $initialized

$project 보호되어 있는 프로퍼티

The Phing project this filter is part of.
protected $project