5 include_once
'Services/Tracking/classes/class.ilLPStatusFactory.php';
40 if(isset(self::$not_attempted_cache[$a_obj_id]))
42 return self::$not_attempted_cache[$a_obj_id];
48 return self::$not_attempted_cache[$a_obj_id];
64 if(isset(self::$in_progress_cache[$a_obj_id]))
66 return self::$in_progress_cache[$a_obj_id];
74 return self::$in_progress_cache[$a_obj_id];
90 if(isset(self::$completed_cache[$a_obj_id]))
92 return self::$completed_cache[$a_obj_id];
97 return self::$completed_cache[$a_obj_id];
113 if(isset(self::$failed_cache[$a_obj_id]))
115 return self::$failed_cache[$a_obj_id];
122 return self::$failed_cache[$a_obj_id];
130 if(isset(self::$info_cache[$a_obj_id]))
132 return self::$info_cache[$a_obj_id];
137 return self::$info_cache[$a_obj_id];
142 unset(self::$info_cache[$a_obj_id]);
143 unset(self::$failed_cache[$a_obj_id]);
144 unset(self::$completed_cache[$a_obj_id]);
145 unset(self::$in_progress_cache[$a_obj_id]);
146 unset(self::$not_attempted_cache[$a_obj_id]);
154 static $cache = array();
156 if(isset($cache[$a_obj_id]))
158 return $cache[$a_obj_id];
164 return $cache[$a_obj_id];
182 static $cache = array();
184 if(isset($cache[$a_obj_id.
'_'.$a_type]))
186 return $cache[$a_obj_id.
'_'.$a_type];
192 return $cache[$a_obj_id.
'_'.$a_type];
202 static $cache = array();
204 if(isset($cache[$a_obj_id.
'_'.$a_type]))
206 return $cache[$a_obj_id.
'_'.$a_type];
212 return $cache[$a_obj_id.
'_'.$a_type];
222 static $cache = array();
224 if(isset($cache[$a_obj_id.
'_'.$a_type]))
226 return $cache[$a_obj_id.
'_'.$a_type];
232 return $cache[$a_obj_id.
'_'.$a_type];
242 static $cache = array();
244 if(isset($cache[$a_obj_id.
'_'.$a_type]))
246 return $cache[$a_obj_id.
'_'.$a_type];
252 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];
267 return $cache[$a_obj_id.
'_'.$a_type];
276 static function _updateStatus($a_obj_id, $a_usr_id, $a_obj = null, $a_percentage =
false, $a_no_raise =
false, $a_force_raise =
false)
279 if (strtolower(get_class($trac_obj)) !=
"illpstatus")
281 $trac_obj->_updateStatus($a_obj_id, $a_usr_id, $a_obj, $a_percentage, $a_no_raise, $a_force_raise);
293 $trac_obj->_setDirty($a_obj_id);
305 $trac_obj->refreshStatus($a_obj_id, $a_users);
316 if (isset(self::$status_cache[$a_obj_id][$a_usr_id]))
318 return self::$status_cache[$a_obj_id][$a_usr_id];
322 $st = $trac_obj->determineStatus($a_obj_id, $a_usr_id);
324 self::$status_cache[$a_obj_id][$a_usr_id] = $st;
331 unset(self::$status_cache[$a_obj_id][$a_usr_id]);