Public Member Functions | |
ilTestResultCache () | |
& | _getInstance () |
store ($a_obj_id, $result_set) | |
get ($a_obj_id) |
Definition at line 33 of file class.ilTestResultCache.php.
& ilTestResultCache::_getInstance | ( | ) |
Definition at line 43 of file class.ilTestResultCache.php.
References ilTestResultCache().
{ static $test_res_cache = null; if(!$test_res_cache) { return $test_res_cache = new ilTestResultCache(); } else { return $test_res_cache; } }
ilTestResultCache::get | ( | $ | a_obj_id | ) |
Definition at line 63 of file class.ilTestResultCache.php.
{ #var_dump("<pre>",$this->stored,time(),"</pre>"); return is_array($this->stored[$a_obj_id]) ? $this->stored[$a_obj_id] : array(); }
ilTestResultCache::ilTestResultCache | ( | ) |
Definition at line 35 of file class.ilTestResultCache.php.
Referenced by _getInstance().
{ }
ilTestResultCache::store | ( | $ | a_obj_id, | |
$ | result_set | |||
) |
Definition at line 57 of file class.ilTestResultCache.php.
{
$this->stored[$a_obj_id] = $result_set;
#var_dump("<pre>",$this->stored,time(),"</pre>");
}