PHP 클래스 DotsUnited\BundleFu\Filter\FilterChain

저자: Jan Sorgalla ([email protected])
상속: implements DotsUnited\BundleFu\Filter\FilterInterface
파일 보기 프로젝트 열기: dotsunited/bundlefu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$filters array Filter chain

공개 메소드들

메소드 설명
addFilter ( DotsUnited\BundleFu\Filter\FilterInterface $filter, string $placement = self::CHAIN_APPEND ) : FilterChain Adds a filter to the chain
appendFilter ( DotsUnited\BundleFu\Filter\FilterInterface $filter ) : FilterChain Add a filter to the end of the chain
filter ( $content ) {@inheritDoc}
filterFile ( $content, $file, SplFileInfo $fileInfo, $bundleUrl, $bundlePath ) {@inheritDoc}
getFilters ( ) : DotsUnited\BundleFu\Filter\FilterInterface[] Get all the filters
prependFilter ( DotsUnited\BundleFu\Filter\FilterInterface $filter ) : FilterChain Add a filter to the start of the chain
resetFilters ( ) : FilterChain Reset all the filters

메소드 상세

addFilter() 공개 메소드

Adds a filter to the chain
public addFilter ( DotsUnited\BundleFu\Filter\FilterInterface $filter, string $placement = self::CHAIN_APPEND ) : FilterChain
$filter DotsUnited\BundleFu\Filter\FilterInterface
$placement string
리턴 FilterChain

appendFilter() 공개 메소드

Add a filter to the end of the chain
public appendFilter ( DotsUnited\BundleFu\Filter\FilterInterface $filter ) : FilterChain
$filter DotsUnited\BundleFu\Filter\FilterInterface
리턴 FilterChain

filter() 공개 메소드

{@inheritDoc}
public filter ( $content )

filterFile() 공개 메소드

{@inheritDoc}
public filterFile ( $content, $file, SplFileInfo $fileInfo, $bundleUrl, $bundlePath )
$fileInfo SplFileInfo

getFilters() 공개 메소드

Get all the filters
public getFilters ( ) : DotsUnited\BundleFu\Filter\FilterInterface[]
리턴 DotsUnited\BundleFu\Filter\FilterInterface[]

prependFilter() 공개 메소드

Add a filter to the start of the chain
public prependFilter ( DotsUnited\BundleFu\Filter\FilterInterface $filter ) : FilterChain
$filter DotsUnited\BundleFu\Filter\FilterInterface
리턴 FilterChain

resetFilters() 공개 메소드

Reset all the filters
public resetFilters ( ) : FilterChain
리턴 FilterChain

프로퍼티 상세

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

Filter chain
protected array $filters
리턴 array