Class for filter methods

 Methods

__construct()

__construct($smarty) 

Parameters

$smarty

Return internal filter name

_get_filter_name(callback $function_name) 

Parameters

$function_name

callback

load a filter of specified type and name

loadFilter(string $type, string $name) : bool

Parameters

$type

string

filter type

$name

string

filter name

Returns

bool

Registers a filter function

registerFilter(string $type, callback $callback) 

Parameters

$type

string

filter type

$callback

callback

Unregisters a filter function

unregisterFilter(string $type, callback $callback) 

Parameters

$type

string

filter type

$callback

callback