Smarty_Internal_Method_UnregisterFilter
Smarty Method UnregisterFilter
Smarty::unregisterFilter() method
- Full name:
\Smarty_Internal_Method_UnregisterFilter
- Parent class:
\Smarty_Internal_Method_RegisterFilter
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
Parameters:
Parameter | Type | Description |
---|---|---|
$function_name |
callable |
Return Value:
internal filter name
_checkFilterType
Check if filter type is valid
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string |
Throws:
Automatically generated on 2025-03-18