Skip to content

Smarty_Internal_Method_AddAutoloadFilters

Smarty Method AddAutoloadFilters

Smarty::addAutoloadFilters() method

Methods

addAutoloadFilters

Add autoload filters

public addAutoloadFilters(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, array $filters, string $type = null): \Smarty|\Smarty_Internal_Template

Parameters:

Parameter Type Description
$obj \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty
$filters array filters to load automatically
$type string "pre", "output", … specify
the filter type to set.
Defaults to none treating
$filters' keys as the
appropriate types

Throws:


Inherited methods

setAutoloadFilters

Set autoload filters

public setAutoloadFilters(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, array $filters, string $type = null): \Smarty|\Smarty_Internal_Template

Parameters:

Parameter Type Description
$obj \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty
$filters array filters to load automatically
$type string "pre", "output", … specify
the filter type to set.
Defaults to none treating
$filters' keys as the
appropriate types

Throws:


_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