\Smarty_Internal_Method_SetAutoloadFilters

Smarty Method SetAutoloadFilters

Smarty::setAutoloadFilters() method

Summary

Methods
Properties
Constants
setAutoloadFilters()
_checkFilterType()
$objMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$filterTypes
N/A

Properties

$objMap

$objMap : integer

Valid for Smarty and template object

Type

integer

$filterTypes

$filterTypes : array

Valid filter types

Type

array

Methods

setAutoloadFilters()

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

Set autoload filters

Parameters

\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
array $filters

filters to load automatically

string $type

"pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types

Returns

\Smarty|\Smarty_Internal_Template

_checkFilterType()

_checkFilterType(string  $type) 

Check if filter type is valid

Parameters

string $type

Throws

\SmartyException