38 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
39 include_once
'Services/Tracking/classes/class.ilLPStatusFactory.php';
57 static $cache = array();
59 if(isset($cache[$a_obj_id]))
61 return $cache[$a_obj_id];
66 $cache[$a_obj_id] = call_user_func(array($class,
'_getNotAttempted'),$a_obj_id);
68 return $cache[$a_obj_id];
84 static $cache = array();
86 if(isset($cache[$a_obj_id]))
88 return $cache[$a_obj_id];
95 $cache[$a_obj_id] = call_user_func($tmp = array($class,
'_getInProgress'),$a_obj_id);
97 return $cache[$a_obj_id];
113 static $cache = array();
115 if(isset($cache[$a_obj_id]))
117 return $cache[$a_obj_id];
120 $cache[$a_obj_id] = call_user_func(array($class,
'_getCompleted'),$a_obj_id);
122 return $cache[$a_obj_id];
138 static $cache = array();
140 if(isset($cache[$a_obj_id]))
142 return $cache[$a_obj_id];
147 $cache[$a_obj_id] = call_user_func(array($class,
'_getFailed'),$a_obj_id);
149 return $cache[$a_obj_id];
157 static $cache = array();
159 if(isset($cache[$a_obj_id]))
161 return $cache[$a_obj_id];
165 $cache[$a_obj_id] = call_user_func(array($class,
'_getStatusInfo'),$a_obj_id);
166 return $cache[$a_obj_id];
174 static $cache = array();
176 if(isset($cache[$a_obj_id]))
178 return $cache[$a_obj_id];
183 $cache[$a_obj_id] = call_user_func(array($class,
'_getTypicalLearningTime'),$a_obj_id);
185 return $cache[$a_obj_id];
202 static $cache = array();
204 if(isset($cache[$a_obj_id.
'_'.$a_type]))
206 return $cache[$a_obj_id.
'_'.$a_type];
211 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getNotAttempted'),$a_obj_id);
213 return $cache[$a_obj_id.
'_'.$a_type];
221 static $cache = array();
223 if(isset($cache[$a_obj_id.
'_'.$a_type]))
225 return $cache[$a_obj_id.
'_'.$a_type];
230 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getInProgress'),$a_obj_id);
232 return $cache[$a_obj_id.
'_'.$a_type];
240 static $cache = array();
242 if(isset($cache[$a_obj_id.
'_'.$a_type]))
244 return $cache[$a_obj_id.
'_'.$a_type];
248 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getCompleted'),$a_obj_id);
249 return $cache[$a_obj_id.
'_'.$a_type];
257 static $cache = array();
259 if(isset($cache[$a_obj_id.
'_'.$a_type]))
261 return $cache[$a_obj_id.
'_'.$a_type];
265 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getFailed'),$a_obj_id);
266 return $cache[$a_obj_id.
'_'.$a_type];
270 static $cache = array();
272 if(isset($cache[$a_obj_id.
'_'.$a_type]))
274 return $cache[$a_obj_id.
'_'.$a_type];
279 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getStatusInfo'),$a_obj_id);
281 return $cache[$a_obj_id.
'_'.$a_type];