16 include_once
"./Services/Object/classes/class.ilObject.php";
51 $this->
ilObject($a_id,$a_call_by_reference);
58 $this->learning_progress = (bool)$a_enable;
73 return (
bool)$ilSetting->get(
"enable_tracking", 0);
81 $this->tracking_user_related = (bool)$a_enable;
96 return (
bool)$ilSetting->get(
'save_user_related_data');
106 return (
bool)$ilSetting->get(
'object_statistics', 0);
117 $this->object_statistics_enabled = (bool)$newValue;
137 $this->session_statistics_enabled = (bool)$newValue;
156 return (
bool)$ilSetting->get(
'session_statistics', 1);
161 $this->valid_time = (int)$a_time_span;
173 return (
int)$ilSetting->get(
"tracking_time_span", self::DEFAULT_TIME_SPAN);
185 $this->is_change_event_tracking_enabled = (bool)$newValue;
200 $this->extended_data = $a_value;
205 return $this->extended_data & $a_code;
215 $ilSetting->set(
"lp_extended_data", $this->extended_data);
249 $this->
setValidTimeSpan($ilSetting->get(
"tracking_time_span", self::DEFAULT_TIME_SPAN));
256 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
269 $query = sprintf(
'DELETE FROM read_event WHERE usr_id = %s ',
270 $ilDB->quote($a_usr_id,
'integer'));
271 $aff = $ilDB->manipulate(
$query);
273 $query = sprintf(
'DELETE FROM write_event WHERE usr_id = %s ',
274 $ilDB->quote($a_usr_id,
'integer'));
275 $aff = $ilDB->manipulate(
$query);
277 $query =
"DELETE FROM ut_lp_marks WHERE usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
280 $ilDB->manipulate(
"DELETE FROM ut_online WHERE usr_id = ".
281 $ilDB->quote($a_usr_id,
"integer"));
312 return $rbacsystem->checkAccess(
"lp_other_users",
$ref_id);
317 $this->lp_learner = (bool)$a_value;
329 return (
bool)$ilias->getSetting(
"lp_learner", 1);
334 $this->lp_list_gui = (bool)$a_value;
346 return (
bool)$ilias->getSetting(
"lp_list_gui", 0);