16 include_once
"./Services/Object/classes/class.ilObject.php";
48 public function __construct($a_id = 0, $a_call_by_reference =
true)
51 parent::__construct($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 (
int) $this->extended_data & (int) $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';
270 'DELETE FROM read_event WHERE usr_id = %s ',
271 $ilDB->quote($a_usr_id,
'integer')
273 $aff = $ilDB->manipulate(
$query);
276 'DELETE FROM write_event WHERE usr_id = %s ',
277 $ilDB->quote($a_usr_id,
'integer')
279 $aff = $ilDB->manipulate(
$query);
281 $query =
"DELETE FROM ut_lp_marks WHERE usr_id = " . $ilDB->quote($a_usr_id,
'integer') .
" ";
284 $ilDB->manipulate(
"DELETE FROM ut_online WHERE usr_id = " .
285 $ilDB->quote($a_usr_id,
"integer"));
297 return $rbacsystem->checkAccess(
"lp_other_users",
$ref_id);
302 $this->lp_learner = (bool) $a_value;
314 return (
bool) $ilSetting->get(
"lp_learner", 1);
319 $this->lp_list_gui = (bool) $a_value;
331 return (
bool) $ilSetting->get(
"lp_list_gui", 0);
setLearningProgressListGUI($a_value)
setValidTimeSpan($a_time_span)
$session_statistics_enabled
const EXTENDED_DATA_LAST_ACCESS
static _deleteUser($a_usr_id)
hasLearningProgressListGUI()
static _enabledObjectStatistics()
check wether object statistics is enabled or not
static _hasLearningProgressLearner()
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.
setLearningProgressLearner($a_value)
enableObjectStatistics($newValue)
Sets the object statistics property.
static _hasLearningProgressOtherUsers()
const EXTENDED_DATA_READ_COUNT
hasLearningProgressLearner()
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
enableUserRelatedData($a_enable)
enable tracking of user related data
enabledSessionStatistics()
Gets the session statistic property.
static _getAllReferences($a_id)
get all reference ids of object
static _enabledUserRelatedData()
check wether user related tracking is enabled or not
static _enabledLearningProgress()
check wether learing progress is enabled or not
enabledChangeEventTracking()
Gets the changeEventTrackingEnabled property.
foreach($_POST as $key=> $value) $res
$is_change_event_tracking_enabled
This variable holds the enabled state of the change event tracking.
enableSessionStatistics($newValue)
Sets the session statistics property.
const EXTENDED_DATA_SPENT_SECONDS
static _hasLearningProgressListGUI()
enabledLearningProgress()
static _isActive()
Returns true, if change event tracking is active.
enabledObjectStatistics()
Gets the object statistic property.
static _enabledSessionStatistics()
check wether session statistics is enabled or not
setExtendedData($a_value)
enableLearningProgress($a_enable)
$object_statistics_enabled
enableChangeEventTracking($newValue)
Sets the changeEventTrackingEnabled property.
static _getValidTimeSpan()