Skip to content

Smarty_Internal_Method_UnregisterFilter

Smarty Method UnregisterFilter

Smarty::unregisterFilter() method

Methods

unregisterFilter

Unregisters a filter function

public unregisterFilter(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, string $type, callable|string $callback): \Smarty|\Smarty_Internal_Template

Parameters:

Parameter Type Description
$obj \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty
$type string filter type
$callback callable|string

Throws:

See Also:

  • https://www.smarty.net/docs/en/api.unregister.filter.tpl -

Inherited methods

registerFilter

Registers a filter function

public registerFilter(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, string $type, callable $callback, string|null $name = null): \Smarty|\Smarty_Internal_Template

Parameters:

Parameter Type Description
$obj \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty
$type string filter type
$callback callable
$name string|null optional filter name

Throws:

See Also:

  • https://www.smarty.net/docs/en/api.register.filter.tpl -

_getFilterName

Return internal filter name

public _getFilterName(callable $function_name): string

Parameters:

Parameter Type Description
$function_name callable

Return Value:

internal filter name


_checkFilterType

Check if filter type is valid

public _checkFilterType(string $type): mixed

Parameters:

Parameter Type Description
$type string

Throws:



Automatically generated on 2025-03-18