function Smarty::register_postfilter in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/lib/smarty/Smarty.class.php \Smarty::register_postfilter()
Registers a postfilter function to apply to a compiled template after compilation
Parameters
string $function name of PHP function to register:
File
- includes/
moodle/ lib/ smarty/ Smarty.class.php, line 865
Class
- Smarty
- @package Smarty
Code
function register_postfilter($function) {
$_name = is_array($function) ? $function[1] : $function;
$this->_plugins['postfilter'][$_name] = array(
$function,
null,
null,
false,
);
}