5 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
6 include_once
'Services/Tracking/classes/class.ilLPStatusFactory.php';
35 static $cache = array();
37 if(isset($cache[$a_obj_id]))
39 return $cache[$a_obj_id];
43 $cache[$a_obj_id] = call_user_func(array($class,
'_getNotAttempted'),$a_obj_id);
45 return $cache[$a_obj_id];
61 static $cache = array();
63 if(isset($cache[$a_obj_id]))
65 return $cache[$a_obj_id];
72 $cache[$a_obj_id] = call_user_func($tmp = array($class,
'_getInProgress'),$a_obj_id);
74 return $cache[$a_obj_id];
90 static $cache = array();
92 if(isset($cache[$a_obj_id]))
94 return $cache[$a_obj_id];
97 $cache[$a_obj_id] = call_user_func(array($class,
'_getCompleted'),$a_obj_id);
99 return $cache[$a_obj_id];
115 static $cache = array();
117 if(isset($cache[$a_obj_id]))
119 return $cache[$a_obj_id];
124 $cache[$a_obj_id] = call_user_func(array($class,
'_getFailed'),$a_obj_id);
126 return $cache[$a_obj_id];
134 static $cache = array();
136 if(isset($cache[$a_obj_id]))
138 return $cache[$a_obj_id];
142 $cache[$a_obj_id] = call_user_func(array($class,
'_getStatusInfo'),$a_obj_id);
143 return $cache[$a_obj_id];
151 static $cache = array();
153 if(isset($cache[$a_obj_id]))
155 return $cache[$a_obj_id];
160 $cache[$a_obj_id] = call_user_func(array($class,
'_getTypicalLearningTime'),$a_obj_id);
162 return $cache[$a_obj_id];
179 static $cache = array();
181 if(isset($cache[$a_obj_id.
'_'.$a_type]))
183 return $cache[$a_obj_id.
'_'.$a_type];
188 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getNotAttempted'),$a_obj_id);
190 return $cache[$a_obj_id.
'_'.$a_type];
198 static $cache = array();
200 if(isset($cache[$a_obj_id.
'_'.$a_type]))
202 return $cache[$a_obj_id.
'_'.$a_type];
207 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getInProgress'),$a_obj_id);
209 return $cache[$a_obj_id.
'_'.$a_type];
217 static $cache = array();
219 if(isset($cache[$a_obj_id.
'_'.$a_type]))
221 return $cache[$a_obj_id.
'_'.$a_type];
225 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getCompleted'),$a_obj_id);
226 return $cache[$a_obj_id.
'_'.$a_type];
234 static $cache = array();
236 if(isset($cache[$a_obj_id.
'_'.$a_type]))
238 return $cache[$a_obj_id.
'_'.$a_type];
242 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getFailed'),$a_obj_id);
243 return $cache[$a_obj_id.
'_'.$a_type];
247 static $cache = array();
249 if(isset($cache[$a_obj_id.
'_'.$a_type]))
251 return $cache[$a_obj_id.
'_'.$a_type];
256 $cache[$a_obj_id.
'_'.$a_type] = call_user_func(array($class,
'_getStatusInfo'),$a_obj_id);
258 return $cache[$a_obj_id.
'_'.$a_type];
267 static function _updateStatus($a_obj_id, $a_usr_id, $a_obj = null, $a_percentage =
false)
271 if (strtolower($class) !=
"illpstatus")
273 $trac_obj =
new $class($a_obj_id);
274 $trac_obj->_updateStatus($a_obj_id, $a_usr_id, $a_obj, $a_percentage);
286 $trac_obj =
new $class($a_obj_id);
287 $trac_obj->_setDirty($a_obj_id);
298 $trac_obj =
new $class($a_obj_id);
299 $trac_obj->refreshStatus($a_obj_id);
311 $trac_obj =
new $class($a_obj_id);
312 return $trac_obj->determineStatus($a_obj_id, $a_usr_id);