function Smarty::load_filter in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/lib/smarty/Smarty.class.php \Smarty::load_filter()
load a filter of specified type and name
Parameters
string $type filter type:
string $name filter name:
1 call to Smarty::load_filter()
- Smarty::fetch in includes/
moodle/ lib/ smarty/ Smarty.class.php - executes & returns or displays the template results
File
- includes/
moodle/ lib/ smarty/ Smarty.class.php, line 911
Class
- Smarty
- @package Smarty
Code
function load_filter($type, $name) {
switch ($type) {
case 'output':
$_params = array(
'plugins' => array(
array(
$type . 'filter',
$name,
null,
null,
false,
),
),
);
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins($_params, $this);
break;
case 'pre':
case 'post':
if (!isset($this->_plugins[$type . 'filter'][$name])) {
$this->_plugins[$type . 'filter'][$name] = false;
}
break;
}
}