1 <?php
3 /**
4 * Smarty method Register_Outputfilter
5 *
6 * Registers a PHP function as outputfilter
7 *
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews
11 */
13 /**
14 * Registers an output filter function to apply
15 * to a template output
16 *
17 * @param object $smarty
18 * @param callback $function
19 */
20 function Smarty_Method_Register_Outputfilter($smarty, $function)
21 {
22 $smarty->registered_filters['output'][$smarty->_get_filter_name($function)] = $function;
23 }
25 ?>