26 lines
462 B
PHP
26 lines
462 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Smarty method Register_Postfilter
|
||
|
*
|
||
|
* Registers a PHP function as postfilter
|
||
|
*
|
||
|
* @package Smarty
|
||
|
* @subpackage SmartyMethod
|
||
|
* @author Uwe Tews
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Registers a postfilter function to apply
|
||
|
* to a compiled template after compilation
|
||
|
*
|
||
|
* @param object $smarty
|
||
|
* @param callback $function
|
||
|
*/
|
||
|
function register_postfilter($smarty, $function)
|
||
|
{
|
||
|
$smarty->registered_filters['post'][$smarty->_get_filter_name($function)] = $function;
|
||
|
}
|
||
|
|
||
|
?>
|