PHP Class Latte\Runtime\FilterExecutor

Datei anzeigen Open project: nette/latte

Public Methods

Method Description
__get ( $name ) : callable Returns filter for classic calling.
add ( $name, $callback ) : static Registers run-time filter.
filterContent ( $name, FilterInfo $info, $arg ) : mixed Calls filter with FilterInfo.
getAll ( ) : string[] Returns all run-time filters.

Private Methods

Method Description
prepareFilter ( $name )

Method Details

__get() public method

Returns filter for classic calling.
public __get ( $name ) : callable
return callable

add() public method

Registers run-time filter.
public add ( $name, $callback ) : static
return static

filterContent() public method

Calls filter with FilterInfo.
public filterContent ( $name, FilterInfo $info, $arg ) : mixed
$info FilterInfo
return mixed

getAll() public method

Returns all run-time filters.
public getAll ( ) : string[]
return string[]