public function getAutoloadFilters(Smarty_Internal_TemplateBase $obj, $type = null)
    {
        $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
        if ($type !== null) {
            $this->_checkFilterType($type);
            return isset($smarty->autoload_filters[$type]) ? $smarty->autoload_filters[$type] : array();
        }
        return $smarty->autoload_filters;
    }