PHP 클래스 Pagekit\Filter\FilterManager

파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaults array
$filters Pagekit\Filter\FilterInterface[]

공개 메소드들

메소드 설명
__construct ( array $defaults = null ) Constructor.
__invoke ( $value, $name, array $options = [] ) Apply shortcut.
apply ( mixed $value, string $name, array $options = [] ) : Pagekit\Filter\FilterInterface Apply a filter.
get ( string $name, array $options = [] ) : Pagekit\Filter\FilterInterface Gets a filter.
register ( string $name, string | Pagekit\Filter\FilterInterface $filter ) Registers a filter.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $defaults = null )
$defaults array

__invoke() 공개 메소드

Apply shortcut.
또한 보기: apply()
public __invoke ( $value, $name, array $options = [] )
$options array

apply() 공개 메소드

Apply a filter.
public apply ( mixed $value, string $name, array $options = [] ) : Pagekit\Filter\FilterInterface
$value mixed
$name string
$options array
리턴 Pagekit\Filter\FilterInterface The filter

get() 공개 메소드

Gets a filter.
public get ( string $name, array $options = [] ) : Pagekit\Filter\FilterInterface
$name string
$options array
리턴 Pagekit\Filter\FilterInterface The filter

register() 공개 메소드

Registers a filter.
public register ( string $name, string | Pagekit\Filter\FilterInterface $filter )
$name string
$filter string | Pagekit\Filter\FilterInterface

프로퍼티 상세

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

protected array $defaults
리턴 array

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

protected FilterInterface[],Pagekit\Filter $filters
리턴 Pagekit\Filter\FilterInterface[]