\Smarty_Internal_Method_GetAutoloadFilters

Smarty Method GetAutoloadFilters

Smarty::getAutoloadFilters() method

Summary

Methods
Properties
Constants
setAutoloadFilters()
_checkFilterType()
getAutoloadFilters()
$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

getAutoloadFilters()

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

Get autoload filters

Parameters

\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
string $type

type of filter to get auto loads for. Defaults to all autoload filters

Returns

array —

array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified