/** * Registers an output filter function which * runs over any variable output * * @param object $smarty * @param callback $function */ function Smarty_Method_Register_Variablefilter($smarty, $function) { $smarty->registered_filters['variable'][$smarty->_get_filter_name($function)] = $function; }
/** * Registers a postfilter function to apply * to a compiled template after compilation * * @param object $smarty * @param callback $function */ function Smarty_Method_Register_Postfilter($smarty, $function) { $smarty->registered_filters['post'][$smarty->_get_filter_name($function)] = $function; }