16 include_once
"./Services/Object/classes/class.ilObject.php";
49 $this->
ilObject($a_id,$a_call_by_reference);
56 $this->learning_progress = (bool)$a_enable;
71 return (
bool)$ilSetting->get(
"enable_tracking", 0);
79 $this->tracking_user_related = (bool)$a_enable;
94 return (
bool)$ilSetting->get(
'save_user_related_data');
104 return (
bool)$ilSetting->get(
'object_statistics', 0);
115 $this->object_statistics_enabled = (bool)$newValue;
135 $this->session_statistics_enabled = (bool)$newValue;
154 return (
bool)$ilSetting->get(
'session_statistics', 1);
159 $this->valid_time = (int)$a_time_span;
171 return (
int)$ilSetting->get(
"tracking_time_span", self::DEFAULT_TIME_SPAN);
183 $this->is_change_event_tracking_enabled = (bool)$newValue;
198 $this->extended_data = $a_value;
203 return $this->extended_data & $a_code;
213 $ilSetting->set(
"lp_extended_data", $this->extended_data);
220 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
244 $this->
setValidTimeSpan($ilSetting->get(
"tracking_time_span", self::DEFAULT_TIME_SPAN));
250 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
263 $query =
"DELETE FROM ut_access WHERE user_id = ".$ilDB->quote($a_usr_id,
"integer").
"";
264 $ilDB->manipulate(
$query);
266 $query = sprintf(
'DELETE FROM read_event WHERE usr_id = %s ',
267 $ilDB->quote($a_usr_id,
'integer'));
268 $aff = $ilDB->manipulate(
$query);
270 $query = sprintf(
'DELETE FROM write_event WHERE usr_id = %s ',
271 $ilDB->quote($a_usr_id,
'integer'));
272 $aff = $ilDB->manipulate(
$query);
274 $query =
"DELETE FROM ut_lp_marks WHERE usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
277 $ilDB->manipulate(
"DELETE FROM ut_online WHERE usr_id = ".
278 $ilDB->quote($a_usr_id,
"integer"));
309 return $rbacsystem->checkAccess(
"lp_other_users",
$ref_id);
314 $this->lp_learner = (bool)$a_value;
319 return (
bool)$this->lp_learner;
326 return (
bool)$ilias->getSetting(
"lp_learner", 1);