4 * Smarty Method GetAutoloadFilters
6 * Smarty::getAutoloadFilters() method
9 * @subpackage PluginsInternal
12 class Smarty_Internal_Method_GetAutoloadFilters extends Smarty_Internal_Method_SetAutoloadFilters
16 * Get autoload filters
18 * @api Smarty::getAutoloadFilters()
20 * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
21 * @param string $type type of filter to get auto loads
22 * for. Defaults to all autoload
25 * @return array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type
28 public function getAutoloadFilters(Smarty_Internal_TemplateBase $obj, $type = null)
30 $smarty = $obj->_getSmartyObj();
32 $this->_checkFilterType($type);
33 return isset($smarty->autoload_filters[ $type ]) ? $smarty->autoload_filters[ $type ] : array();
35 return $smarty->autoload_filters;