Skip to content

Smarty_Internal_Method_SetAutoloadFilters

Smarty Method SetAutoloadFilters

Smarty::setAutoloadFilters() method

  • Full name: \Smarty_Internal_Method_SetAutoloadFilters

Properties

objMap

Valid for Smarty and template object

public int $objMap

filterTypes

Valid filter types

private array $filterTypes

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