ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjUserTracking Class Reference
+ Inheritance diagram for ilObjUserTracking:
+ Collaboration diagram for ilObjUserTracking:

Public Member Functions

 __construct (int $a_id=0, bool $a_call_by_reference=true)
 
 enableLearningProgress (bool $a_enable)
 
 enabledLearningProgress ()
 
 enableUserRelatedData (bool $a_enable)
 
 enabledUserRelatedData ()
 
 enableObjectStatistics (bool $newValue)
 
 enabledObjectStatistics ()
 
 enableSessionStatistics (bool $newValue)
 
 enabledSessionStatistics ()
 
 setValidTimeSpan (int $a_time_span)
 
 getValidTimeSpan ()
 
 enableChangeEventTracking (bool $newValue)
 
 enabledChangeEventTracking ()
 
 setExtendedData (int $a_value)
 
 hasExtendedData (int $a_code)
 
 updateSettings ()
 
 setLearningProgressLearner (bool $a_value)
 
 hasLearningProgressLearner ()
 
 setLearningProgressListGUI (bool $a_value)
 
 hasLearningProgressListGUI ()
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static _enabledLearningProgress ()
 
static _enabledUserRelatedData ()
 
static _enabledObjectStatistics ()
 
static _enabledSessionStatistics ()
 
static _getValidTimeSpan ()
 
static _deleteUser (int $a_usr_id)
 
static _hasLearningProgressOtherUsers ()
 
static _hasLearningProgressLearner ()
 
static _hasLearningProgressListGUI ()
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const EXTENDED_DATA_LAST_ACCESS = 1
 
const EXTENDED_DATA_READ_COUNT = 2
 
const EXTENDED_DATA_SPENT_SECONDS = 4
 
const DEFAULT_TIME_SPAN = 300
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 __readSettings ()
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Protected Attributes

int $extended_data = 0
 
bool $learning_progress = false
 
bool $tracking_user_related = false
 
bool $object_statistics_enabled = false
 
bool $lp_learner = false
 
bool $session_statistics_enabled = false
 
bool $lp_list_gui = false
 
ilSetting $settings
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Private Attributes

int $valid_time = 0
 
bool $is_change_event_tracking_enabled = false
 This variable holds the enabled state of the change event tracking. More...
 

Detailed Description

Definition at line 27 of file class.ilObjUserTracking.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjUserTracking::__construct ( int  $a_id = 0,
bool  $a_call_by_reference = true 
)

Definition at line 51 of file class.ilObjUserTracking.php.

52 {
53 global $DIC;
54
55 $this->settings = $DIC->settings();
56
57 $this->type = "trac";
58 parent::__construct($a_id, $a_call_by_reference);
59 $this->__readSettings();
60 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), __readSettings(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ __readSettings()

ilObjUserTracking::__readSettings ( )
protected

Definition at line 212 of file class.ilObjUserTracking.php.

212 : void
213 {
215 (bool) $this->settings->get("enable_tracking", '0')
216 );
218 (bool) $this->settings->get("save_user_related_data", '0')
219 );
221 (bool) $this->settings->get("object_statistics", '0')
222 );
223 $this->setValidTimeSpan(
224 (int) $this->settings->get(
225 "tracking_time_span",
226 (string) self::DEFAULT_TIME_SPAN
227 )
228 );
230 (bool) $this->settings->get("lp_learner", '1')
231 );
233 (bool) $this->settings->get("session_statistics", '1')
234 );
236 (bool) $this->settings->get("lp_list_gui", '0')
237 );
238
239 // BEGIN ChangeEvent
241 // END ChangeEvent
242
243 $this->setExtendedData(
244 (int) $this->settings->get("lp_extended_data", '0')
245 );
246 }
static _isActive()
Returns true, if change event tracking is active.
setLearningProgressLearner(bool $a_value)
enableSessionStatistics(bool $newValue)
enableObjectStatistics(bool $newValue)
setLearningProgressListGUI(bool $a_value)
setValidTimeSpan(int $a_time_span)
enableLearningProgress(bool $a_enable)
enableChangeEventTracking(bool $newValue)
enableUserRelatedData(bool $a_enable)

References ilChangeEvent\_isActive(), enableChangeEventTracking(), enableLearningProgress(), enableObjectStatistics(), enableSessionStatistics(), enableUserRelatedData(), setExtendedData(), setLearningProgressLearner(), setLearningProgressListGUI(), ILIAS\Repository\settings(), and setValidTimeSpan().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _deleteUser()

static ilObjUserTracking::_deleteUser ( int  $a_usr_id)
static

Definition at line 248 of file class.ilObjUserTracking.php.

248 : void
249 {
250 global $DIC;
251
252 $ilDB = $DIC['ilDB'];
253 $query = sprintf(
254 'DELETE FROM read_event WHERE usr_id = %s ',
255 $ilDB->quote($a_usr_id, 'integer')
256 );
257 $aff = $ilDB->manipulate($query);
258
259 $query = sprintf(
260 'DELETE FROM write_event WHERE usr_id = %s ',
261 $ilDB->quote($a_usr_id, 'integer')
262 );
263 $aff = $ilDB->manipulate($query);
264
265 $query = "DELETE FROM ut_lp_marks WHERE usr_id = " . $ilDB->quote(
266 $a_usr_id,
267 'integer'
268 ) . " ";
269 $res = $ilDB->manipulate($query);
270
271 $ilDB->manipulate(
272 "DELETE FROM ut_online WHERE usr_id = " .
273 $ilDB->quote($a_usr_id, "integer")
274 );
275 }
$res
Definition: ltiservices.php:69

References $DIC, $ilDB, and $res.

Referenced by ilObjUser\delete().

+ Here is the caller graph for this function:

◆ _enabledLearningProgress()

static ilObjUserTracking::_enabledLearningProgress ( )
static

Definition at line 72 of file class.ilObjUserTracking.php.

72 : bool
73 {
74 global $DIC;
75
76 $ilSetting = $DIC->settings();
77
78 return (bool) $ilSetting->get("enable_tracking", '0');
79 }
global $ilSetting
Definition: privfeed.php:31

References $DIC, and $ilSetting.

Referenced by ilCourseParticipantsTableGUI\__construct(), ilObjLearningSequenceContentTableGUI\__construct(), ilLearningProgressGUI\__getNextClass(), ilObjCourse\checkLPStatusSync(), ilCertificateObjUserTrackingHelper\enabledLearningProgress(), ilLearningSequenceParticipantsTableGUI\fillRow(), ilObjectLP\getCurrentMode(), ilCourseLPBadgeGUI\getInvalidLPModes(), ilUserLPTableGUI\getItems(), ilCourseLPBadgeGUI\getLPTypes(), ilConditionHandler\getOperatorsByTriggerType(), ilCourseMembershipGUI\getPrintMemberData(), ilOrgUnitUserAssignmentDBRepository\getRows(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilMStShowUserCoursesTableGUI\getSelectableColumns(), ILIAS\LearningProgress\LPMainBarProvider\getStaticSubItems(), ilObjIndividualAssessmentGUI\getTabs(), ilObjLearningSequenceGUI\getTabs(), ilObjUserGUI\getTabs(), ilConditionHandler\getTriggerTypes(), ilCourseAppEventListener\handleEvent(), ilMembershipGUI\initAttendanceList(), ilObjCourseGUI\initEditForm(), ilMStListCoursesTableGUI\initFilter(), ilMStShowUserCoursesTableGUI\initFilter(), ilLearningSequenceParticipantsTableGUI\initForm(), ilObjUserTrackingGUI\initLPDefaultsForm(), ilCourseMembershipGUI\initParticipantTableGUI(), ilGroupMembershipGUI\initParticipantTableGUI(), ilMStListCoursesTableGUI\initSelectableColumns(), ilTrackingLearningHistoryProvider\isActive(), ilAchievements\isActive(), ilLearningSequenceRoles\isCompletedByUser(), ilLearningSequenceRoles\isTrackingEnabled(), ilLPStatus\preloadListGUIData(), ilObjGroupGUI\readMemberData(), ilObjCourseGUI\readMemberData(), ilObjSCORMLearningModule\setLearningProgressSettingsAtUpload(), ilObjCourse\setStatusDetermination(), ilObjCertificateSettingsGUI\settings(), ilObjUserTrackingGUI\settingsObject(), ilInfoScreenGUI\showLearningProgress(), and ilObjCourseGUI\updateLPFromStatus().

+ Here is the caller graph for this function:

◆ _enabledObjectStatistics()

static ilObjUserTracking::_enabledObjectStatistics ( )
static

Definition at line 99 of file class.ilObjUserTracking.php.

99 : bool
100 {
101 global $DIC;
102
103 $ilSetting = $DIC->settings();
104 return (bool) $ilSetting->get('object_statistics', '0');
105 }

References $DIC, and $ilSetting.

Referenced by ilObjUserTrackingGUI\getTabs().

+ Here is the caller graph for this function:

◆ _enabledSessionStatistics()

static ilObjUserTracking::_enabledSessionStatistics ( )
static

Definition at line 127 of file class.ilObjUserTracking.php.

127 : bool
128 {
129 global $DIC;
130
131 $ilSetting = $DIC->settings();
132 return (bool) $ilSetting->get('session_statistics', '1');
133 }

References $DIC, and $ilSetting.

Referenced by ilObjUserTrackingGUI\getTabs().

+ Here is the caller graph for this function:

◆ _enabledUserRelatedData()

◆ _getValidTimeSpan()

static ilObjUserTracking::_getValidTimeSpan ( )
static

Definition at line 145 of file class.ilObjUserTracking.php.

145 : int
146 {
147 global $DIC;
148
149 $ilSetting = $DIC->settings();
150 return (int) $ilSetting->get(
151 "tracking_time_span",
152 (string) self::DEFAULT_TIME_SPAN
153 );
154 }

References $DIC, and $ilSetting.

Referenced by ilLPObjSettings\_mode2InfoText(), and ilLPListOfSettingsGUI\initFormSettings().

+ Here is the caller graph for this function:

◆ _hasLearningProgressLearner()

static ilObjUserTracking::_hasLearningProgressLearner ( )
static

Definition at line 299 of file class.ilObjUserTracking.php.

299 : bool
300 {
301 global $DIC;
302
303 $ilSetting = $DIC->settings();
304 return (bool) $ilSetting->get("lp_learner", '1');
305 }

References $DIC, and $ilSetting.

Referenced by ilLearningProgressGUI\__getNextClass(), ilLearningProgressBaseGUI\__setSubTabs(), ILIAS\LearningProgress\LPMainBarProvider\getStaticSubItems(), ilTrackingLearningHistoryProvider\isActive(), ilAchievements\isActive(), and ilLPStatus\preloadListGUIData().

+ Here is the caller graph for this function:

◆ _hasLearningProgressListGUI()

static ilObjUserTracking::_hasLearningProgressListGUI ( )
static

Definition at line 317 of file class.ilObjUserTracking.php.

317 : bool
318 {
319 global $DIC;
320
321 $ilSetting = $DIC->settings();
322 return (bool) $ilSetting->get("lp_list_gui", '0');
323 }

References $DIC, and $ilSetting.

Referenced by ilLPStatus\preloadListGUIData().

+ Here is the caller graph for this function:

◆ _hasLearningProgressOtherUsers()

static ilObjUserTracking::_hasLearningProgressOtherUsers ( )
static

Definition at line 277 of file class.ilObjUserTracking.php.

277 : bool
278 {
279 global $DIC;
280
281 $rbacsystem = $DIC['rbacsystem'];
282 $obj_ids = array_keys(ilObject::_getObjectsByType("trac"));
283 $obj_id = array_pop($obj_ids);
284 $ref_ids = ilObject::_getAllReferences($obj_id);
285 $ref_id = array_pop($ref_ids);
286 return $rbacsystem->checkAccess("lp_other_users", $ref_id);
287 }
static _getAllReferences(int $id)
get all reference ids for object ID
static _getObjectsByType(string $obj_type="", ?int $owner=null)

References $DIC, ilObject\$ref_id, ilObject\_getAllReferences(), and ilObject\_getObjectsByType().

Referenced by ilLearningProgressGUI\__getNextClass(), and ilAchievements\isActive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ enableChangeEventTracking()

ilObjUserTracking::enableChangeEventTracking ( bool  $newValue)

Definition at line 156 of file class.ilObjUserTracking.php.

156 : void
157 {
158 $this->is_change_event_tracking_enabled = $newValue;
159 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ enabledChangeEventTracking()

ilObjUserTracking::enabledChangeEventTracking ( )

Definition at line 161 of file class.ilObjUserTracking.php.

161 : bool
162 {
164 }
bool $is_change_event_tracking_enabled
This variable holds the enabled state of the change event tracking.

References $is_change_event_tracking_enabled.

◆ enabledLearningProgress()

ilObjUserTracking::enabledLearningProgress ( )

Definition at line 67 of file class.ilObjUserTracking.php.

67 : bool
68 {
70 }

References $learning_progress.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ enabledObjectStatistics()

ilObjUserTracking::enabledObjectStatistics ( )

Definition at line 112 of file class.ilObjUserTracking.php.

112 : bool
113 {
115 }

References $object_statistics_enabled.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ enabledSessionStatistics()

ilObjUserTracking::enabledSessionStatistics ( )

Definition at line 122 of file class.ilObjUserTracking.php.

122 : bool
123 {
125 }

References $session_statistics_enabled.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ enabledUserRelatedData()

ilObjUserTracking::enabledUserRelatedData ( )

Definition at line 86 of file class.ilObjUserTracking.php.

86 : bool
87 {
89 }

References $tracking_user_related.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ enableLearningProgress()

ilObjUserTracking::enableLearningProgress ( bool  $a_enable)

Definition at line 62 of file class.ilObjUserTracking.php.

62 : void
63 {
64 $this->learning_progress = $a_enable;
65 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ enableObjectStatistics()

ilObjUserTracking::enableObjectStatistics ( bool  $newValue)

Definition at line 107 of file class.ilObjUserTracking.php.

107 : void
108 {
109 $this->object_statistics_enabled = $newValue;
110 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ enableSessionStatistics()

ilObjUserTracking::enableSessionStatistics ( bool  $newValue)

Definition at line 117 of file class.ilObjUserTracking.php.

117 : void
118 {
119 $this->session_statistics_enabled = $newValue;
120 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ enableUserRelatedData()

ilObjUserTracking::enableUserRelatedData ( bool  $a_enable)

Definition at line 81 of file class.ilObjUserTracking.php.

81 : void
82 {
83 $this->tracking_user_related = $a_enable;
84 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ getValidTimeSpan()

ilObjUserTracking::getValidTimeSpan ( )

Definition at line 140 of file class.ilObjUserTracking.php.

140 : int
141 {
142 return $this->valid_time;
143 }

References $valid_time.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ hasExtendedData()

ilObjUserTracking::hasExtendedData ( int  $a_code)

Definition at line 173 of file class.ilObjUserTracking.php.

173 : bool
174 {
175 return (bool) ($this->extended_data & $a_code);
176 }

◆ hasLearningProgressLearner()

ilObjUserTracking::hasLearningProgressLearner ( )

Definition at line 294 of file class.ilObjUserTracking.php.

294 : bool
295 {
296 return $this->lp_learner;
297 }

References $lp_learner.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ hasLearningProgressListGUI()

ilObjUserTracking::hasLearningProgressListGUI ( )

Definition at line 312 of file class.ilObjUserTracking.php.

312 : bool
313 {
314 return $this->lp_list_gui;
315 }

References $lp_list_gui.

Referenced by updateSettings().

+ Here is the caller graph for this function:

◆ setExtendedData()

ilObjUserTracking::setExtendedData ( int  $a_value)

Definition at line 168 of file class.ilObjUserTracking.php.

168 : void
169 {
170 $this->extended_data = $a_value;
171 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ setLearningProgressLearner()

ilObjUserTracking::setLearningProgressLearner ( bool  $a_value)

Definition at line 289 of file class.ilObjUserTracking.php.

289 : void
290 {
291 $this->lp_learner = $a_value;
292 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ setLearningProgressListGUI()

ilObjUserTracking::setLearningProgressListGUI ( bool  $a_value)

Definition at line 307 of file class.ilObjUserTracking.php.

307 : void
308 {
309 $this->lp_list_gui = $a_value;
310 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ setValidTimeSpan()

ilObjUserTracking::setValidTimeSpan ( int  $a_time_span)

Definition at line 135 of file class.ilObjUserTracking.php.

135 : void
136 {
137 $this->valid_time = $a_time_span;
138 }

Referenced by __readSettings().

+ Here is the caller graph for this function:

◆ updateSettings()

ilObjUserTracking::updateSettings ( )

Definition at line 178 of file class.ilObjUserTracking.php.

179 {
180 $this->settings->set(
181 "enable_tracking",
182 (string) $this->enabledLearningProgress()
183 );
184 $this->settings->set(
185 "save_user_related_data",
186 (string) $this->enabledUserRelatedData()
187 );
188 $this->settings->set(
189 "tracking_time_span",
190 (string) $this->getValidTimeSpan()
191 );
192 $this->settings->set("lp_extended_data", (string) $this->extended_data);
193 $this->settings->set(
194 "object_statistics",
195 (string) $this->enabledObjectStatistics()
196 );
197 // $this->settings->set("lp_desktop", (int)$this->hasLearningProgressDesktop());
198 $this->settings->set(
199 "lp_learner",
200 (string) $this->hasLearningProgressLearner()
201 );
202 $this->settings->set(
203 "session_statistics",
204 (string) $this->enabledSessionStatistics()
205 );
206 $this->settings->set(
207 "lp_list_gui",
208 (string) $this->hasLearningProgressListGUI()
209 );
210 }

References enabledLearningProgress(), enabledObjectStatistics(), enabledSessionStatistics(), enabledUserRelatedData(), getValidTimeSpan(), hasLearningProgressLearner(), hasLearningProgressListGUI(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Field Documentation

◆ $extended_data

int ilObjUserTracking::$extended_data = 0
protected

Definition at line 30 of file class.ilObjUserTracking.php.

◆ $is_change_event_tracking_enabled

bool ilObjUserTracking::$is_change_event_tracking_enabled = false
private

This variable holds the enabled state of the change event tracking.

Definition at line 41 of file class.ilObjUserTracking.php.

Referenced by enabledChangeEventTracking().

◆ $learning_progress

bool ilObjUserTracking::$learning_progress = false
protected

Definition at line 31 of file class.ilObjUserTracking.php.

Referenced by enabledLearningProgress().

◆ $lp_learner

bool ilObjUserTracking::$lp_learner = false
protected

Definition at line 34 of file class.ilObjUserTracking.php.

Referenced by hasLearningProgressLearner().

◆ $lp_list_gui

bool ilObjUserTracking::$lp_list_gui = false
protected

Definition at line 36 of file class.ilObjUserTracking.php.

Referenced by hasLearningProgressListGUI().

◆ $object_statistics_enabled

bool ilObjUserTracking::$object_statistics_enabled = false
protected

Definition at line 33 of file class.ilObjUserTracking.php.

Referenced by enabledObjectStatistics().

◆ $session_statistics_enabled

bool ilObjUserTracking::$session_statistics_enabled = false
protected

Definition at line 35 of file class.ilObjUserTracking.php.

Referenced by enabledSessionStatistics().

◆ $settings

ilSetting ilObjUserTracking::$settings
protected

Definition at line 49 of file class.ilObjUserTracking.php.

◆ $tracking_user_related

bool ilObjUserTracking::$tracking_user_related = false
protected

Definition at line 32 of file class.ilObjUserTracking.php.

Referenced by enabledUserRelatedData().

◆ $valid_time

int ilObjUserTracking::$valid_time = 0
private

Definition at line 29 of file class.ilObjUserTracking.php.

Referenced by getValidTimeSpan().

◆ DEFAULT_TIME_SPAN

const ilObjUserTracking::DEFAULT_TIME_SPAN = 300

Definition at line 47 of file class.ilObjUserTracking.php.

◆ EXTENDED_DATA_LAST_ACCESS

◆ EXTENDED_DATA_READ_COUNT

◆ EXTENDED_DATA_SPENT_SECONDS


The documentation for this class was generated from the following file: