Smarty_Internal_Method_GetAutoloadFilters
Smarty Method GetAutoloadFilters
Smarty::getAutoloadFilters() method
- Full name:
\Smarty_Internal_Method_GetAutoloadFilters
- Parent class:
\Smarty_Internal_Method_SetAutoloadFilters
Methods
getAutoloadFilters
Get autoload filters
public getAutoloadFilters(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, string $type = null): array
Parameters:
Parameter | Type | Description |
---|---|---|
$obj |
\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty | |
$type |
string | type of filter to get auto loads for. Defaults to all autoload filters |
Return Value:
array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified
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
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string |
Throws:
Automatically generated on 2025-03-18