function Smarty_Compiler::_load_filters in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/smarty/Smarty_Compiler.class.php \Smarty_Compiler::_load_filters()
load pre- and post-filters
1 call to Smarty_Compiler::_load_filters()
- Smarty_Compiler::_compile_file in includes/
moodle/ lib/ smarty/ Smarty_Compiler.class.php - compile a resource
File
- includes/
moodle/ lib/ smarty/ Smarty_Compiler.class.php, line 2148
Class
- Smarty_Compiler
- Template compiling class @package Smarty
Code
function _load_filters() {
if (count($this->_plugins['prefilter']) > 0) {
foreach ($this->_plugins['prefilter'] as $filter_name => $prefilter) {
if ($prefilter === false) {
unset($this->_plugins['prefilter'][$filter_name]);
$_params = array(
'plugins' => array(
array(
'prefilter',
$filter_name,
null,
null,
false,
),
),
);
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins($_params, $this);
}
}
}
if (count($this->_plugins['postfilter']) > 0) {
foreach ($this->_plugins['postfilter'] as $filter_name => $postfilter) {
if ($postfilter === false) {
unset($this->_plugins['postfilter'][$filter_name]);
$_params = array(
'plugins' => array(
array(
'postfilter',
$filter_name,
null,
null,
false,
),
),
);
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins($_params, $this);
}
}
}
}