function Smarty::_get_auto_id in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::_get_auto_id()
returns an auto_id for auto-file-functions
Parameters
string $cache_id:
string $compile_id:
Return value
string|null
1 call to Smarty::_get_auto_id()
- Smarty::clear_cache in includes/
moodle/ lib/ smarty/ Smarty.class.php - clear cached content for the given template and cache id
File
- includes/
moodle/ lib/ smarty/ Smarty.class.php, line 1778
Class
- Smarty
- @package Smarty
Code
function _get_auto_id($cache_id = null, $compile_id = null) {
if (isset($cache_id)) {
return isset($compile_id) ? $cache_id . '|' . $compile_id : $cache_id;
}
elseif (isset($compile_id)) {
return $compile_id;
}
else {
return null;
}
}