Skip to content

Smarty_Internal_Method_LoadFilter

Smarty Method LoadFilter

Smarty::loadFilter() method

  • Full name: \Smarty_Internal_Method_LoadFilter

Properties

objMap

Valid for Smarty and template object

public int $objMap

filterTypes

Valid filter types

private array $filterTypes

Methods

loadFilter

load a filter of specified type and name

public loadFilter(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, string $type, string $name): bool

Parameters:

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

Throws:

if filter could not be loaded

See Also:

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

_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