Public Member Functions

ilTestResultCache Class Reference

Public Member Functions

 ilTestResultCache ()
_getInstance ()
 store ($a_obj_id, $result_set)
 get ($a_obj_id)

Detailed Description

Definition at line 33 of file class.ilTestResultCache.php.


Member Function Documentation

& 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;
                }
        }

Here is the call graph for this function:

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().

        {
                
        }

Here is the caller graph for this function:

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>");
        }


The documentation for this class was generated from the following file: