function Smarty::_smarty_cache_attrs in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::_smarty_cache_attrs()
get or set an array of cached attributes for function that is not cacheable
Return value
array
File
- includes/
moodle/ lib/ smarty/ Smarty.class.php, line 1886
Class
- Smarty
- @package Smarty
Code
function &_smarty_cache_attrs($cache_serial, $count) {
$_cache_attrs =& $this->_cache_info['cache_attrs'][$cache_serial][$count];
if ($this->_cache_including) {
/* return next set of cache_attrs */
$_return =& current($_cache_attrs);
next($_cache_attrs);
return $_return;
}
else {
/* add a reference to a new set of cache_attrs */
$_cache_attrs[] = array();
return $_cache_attrs[count($_cache_attrs) - 1];
}
}