ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Class ilChangeEvent tracks change events on repository objects. More...
Static Public Member Functions | |
static | _recordWriteEvent (int $obj_id, int $usr_id, string $action, ?int $parent_obj_id=null) |
Records a write event. More... | |
static | _recordReadEvent (string $a_type, int $a_ref_id, int $obj_id, int $usr_id, bool $isCatchupWriteEvents=true, $a_ext_rc=null, $a_ext_time=null) |
static | _recordObjStats (int $a_obj_id, ?int $a_spent_seconds, ?int $a_read_count, ?int $a_childs_spent_seconds=null, ?int $a_child_read_count=null) |
static | _syncObjectStats (?int $a_now=null, int $a_minimum=20000) |
static | _catchupWriteEvents (int $obj_id, int $usr_id, ?string $timestamp=null) |
Catches up with all write events which occured before the specified timestamp. More... | |
static | _lookupUncaughtWriteEvents (int $obj_id, int $usr_id) |
Reads all write events which occured on the object which happened after the last time the user caught up with them. More... | |
static | _lookupChangeState (int $obj_id, int $usr_id) |
Returns the change state of the object for the specified user. More... | |
static | _lookupReadEvents ($obj_id, $usr_id=null) |
Reads all read events which occured on the object. More... | |
static | lookupUsersInProgress (int $a_obj_id) |
static | hasAccessed (int $a_obj_id, int $a_usr_id) |
Has accessed. More... | |
static | _activate () |
Activates change event tracking. More... | |
static | _deactivate () |
Deactivates change event tracking. More... | |
static | _isActive () |
Returns true, if change event tracking is active. More... | |
static | _delete (int $a_obj_id) |
Delete object entries. More... | |
static | _deleteReadEvents (int $a_obj_id) |
static | _deleteReadEventsForUsers (int $a_obj_id, array $a_user_ids) |
static | _getAllUserIds (int $a_obj_id) |
static | _updateAccessForScormOfflinePlayer (int $obj_id, int $usr_id, int $i_last_access, string $t_first_access) |
_updateAccessForScormOfflinePlayer needed to synchronize last_access and first_access when learning modul is used offline called in . More... | |
Static Private Attributes | |
static array | $has_accessed = [] |
Class ilChangeEvent tracks change events on repository objects.
The following events are considered to be a 'write event':
Definition at line 43 of file class.ilChangeEvent.php.
|
static |
Activates change event tracking.
Definition at line 675 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $ilSetting, $res, _isActive(), and null.
Referenced by ilObjRepositorySettingsGUI\saveSettings().
|
static |
Catches up with all write events which occured before the specified timestamp.
$obj_id | int The object. |
$usr_id | int The user. |
$timestamp | string|null timestamp. |
This method was only used to write to catch_write_events, but the methods reading out that table are not used anywhere.
Definition at line 540 of file class.ilChangeEvent.php.
Referenced by _recordReadEvent(), ilContainerGUI\pasteObject(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjFileGUI\putObjectInTree(), ilRepUtil\restoreObjects(), ilObjRootFolderGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), and ilObjCategoryGUI\updateObject().
|
static |
Deactivates change event tracking.
Definition at line 729 of file class.ilChangeEvent.php.
References $DIC, and $ilSetting.
Referenced by ilObjRepositorySettingsGUI\saveSettings().
|
static |
Delete object entries.
Definition at line 752 of file class.ilChangeEvent.php.
Referenced by ilObjectLP\handleDelete().
|
static |
Definition at line 771 of file class.ilChangeEvent.php.
|
static |
Definition at line 783 of file class.ilChangeEvent.php.
Referenced by ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSCORMLearningModule\deleteTrackingDataOfUsers(), and ilObjectLP\resetLPDataForUserIds().
|
static |
Definition at line 798 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilObjectLP\gatherLPUsers().
|
static |
Returns true, if change event tracking is active.
Definition at line 741 of file class.ilChangeEvent.php.
References $DIC, and $ilSetting.
Referenced by ilObjUserTracking\__readSettings(), _activate(), ilObjRepositorySettingsGUI\addToExternalSettingsForm(), ilInfoScreenGUI\buildPublicAccessExportButton(), and ilObjRepositorySettingsGUI\initSettingsForm().
|
static |
Returns the change state of the object for the specified user.
which happened after the last time the user caught up with them.
$obj_id | int The object |
$usr_id | int The user who is interested into these events. |
This method is unused, so the table it read from was removed for performance reasons.
Definition at line 578 of file class.ilChangeEvent.php.
|
static |
Reads all read events which occured on the object.
$obj_id | int The object |
$usr_id | int Optional, the user who performed these events. |
Definition at line 588 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $res, and null.
Referenced by ilLPStatusContentVisited\_getCompleted(), ilLPStatusVisits\_getCompleted(), ilLPStatusTypicalLearningTime\_getCompleted(), ilLPStatusVisits\_getInProgress(), ilLPStatusTypicalLearningTime\_getInProgress(), ilLearningProgress\_getProgress(), ilLearningProgress\_lookupProgressByObjId(), ilInfoScreenGUI\buildPublicAccessExportButton(), ilLPStatusVisits\determinePercentage(), ilLPStatusTypicalLearningTime\determinePercentage(), ilLPStatusVisits\determineStatus(), ilLPStatusTypicalLearningTime\determineStatus(), ilObjSCORMLearningModule\importSuccessForSahsUser(), and ILIAS\MetaData\Vocabularies\Dispatch\Presentation\Presentation\VideoViewGUI\renderSideColumn().
|
static |
Reads all write events which occured on the object which happened after the last time the user caught up with them.
$obj_id | int The object |
$usr_id | int The user who is interested into these events. |
This method is unused, so the table it read from was removed for performance reasons.
Definition at line 558 of file class.ilChangeEvent.php.
|
static |
Definition at line 322 of file class.ilChangeEvent.php.
References $DIC, $ilDB, ilObjUserTracking\_enabledObjectStatistics(), and ilObject\_lookupType().
|
static |
Definition at line 117 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $path, $res, _catchupWriteEvents(), ilObjUserTracking\_getValidTimeSpan(), ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\int(), and null.
Referenced by ilSCORM2004Tracking\_syncReadEvent(), ilObjSCORMTracking\_syncReadEvent(), ilLearningProgress\_tracProgress(), ilRemoteObjectBaseGUI\callObject(), ilSurveyExecutionGUI\executeCommand(), ilObjForumGUI\getContent(), ilObjSCORMLearningModule\importSuccessForSahsUser(), ilWikiPageGUI\increaseViewCount(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjIndividualAssessmentGUI\recordIndividualAssessmentRead(), ilObjLearningSequenceGUI\recordLearningSequenceRead(), ilObjLinkResourceGUI\redirectToLink(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilObjBlogGUI\renderFullscreenHeader(), ilObjCategoryGUI\renderObject(), ILIAS\MediaObjects\Tracking\TrackingManager\saveCompletion(), ilObjFileGUI\sendFile(), ilContainerContentGUI\setOutput(), ilObjMediaCastGUI\showContentObject(), ilObjSessionGUI\showJoinRequestButton(), ilObjSCORMTracking\syncGlobalStatus(), ilLMTracker\trackAccess(), ilObjCmiXapiGUI\trackObjectReadEvent(), ilObjLTIConsumerGUI\trackObjectReadEvent(), ilObjTestGUI\trackTestObjectReadEvent(), ilObjectGUI\viewObject(), and ilObjForumGUI\viewThreadObject().
|
static |
Records a write event.
The parent object should be specified for the 'delete', 'undelete' and 'add' and 'remove' events.
int | $obj_id | The object which was written to. |
int | $usr_id | The user who performed a write action. |
string | $action | The name of the write action. 'create', 'update', 'delete', 'add', 'remove', 'undelete'. |
int | null | $parent_obj_id | The object id of the parent object. If this is null, then the event is recorded for all parents of the object. If this is not null, then the event is only recorded for the specified parent. |
Definition at line 61 of file class.ilChangeEvent.php.
References $DIC, $ilDB, and null.
Referenced by ilObjCourseGUI\afterSave(), ILIAS\Repository\Deletion\EventStandardAdapter\beforeSubtreeRemoval(), ilContainerGUI\pasteObject(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjFileGUI\putObjectInTree(), ilObject2GUI\putObjectInTree(), ilObjectGUI\putObjectInTree(), ilRepUtil\removeObjectsFromSystem(), ilRepUtil\restoreObjects(), ilObjRootFolderGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjCourseGUI\updateObject(), and ilObjCategoryGUI\updateObject().
|
static |
Definition at line 373 of file class.ilChangeEvent.php.
References $check, $DIC, $ilDB, ilDBInterface\buildAtomQuery(), ilDBInterface\fetchAssoc(), ilDBInterface\insert(), ilDBInterface\numRows(), ilDBInterface\query(), ilDBInterface\quote(), and ilDBInterface\update().
Referenced by ilLPObjectStatisticsGUI\adminSync().
|
static |
_updateAccessForScormOfflinePlayer needed to synchronize last_access and first_access when learning modul is used offline called in .
/Modules/ScormAicc/classes/class.ilSCORMOfflineMode.php
Definition at line 819 of file class.ilChangeEvent.php.
References $DIC, $ilDB, and $res.
|
static |
Has accessed.
Definition at line 651 of file class.ilChangeEvent.php.
Referenced by ilLPStatusContentVisited\_getCompleted(), ilLPStatusVisitedPages\determineStatus(), ilLPStatusManual\determineStatus(), ilLPStatusQuestions\determineStatus(), ilLPStatusVisits\determineStatus(), ilLPStatusExerciseReturned\determineStatus(), ilLPStatusTypicalLearningTime\determineStatus(), ilLPStatusManualByTutor\determineStatus(), ilLPStatusCollectionMobs\determineStatus(), ilLPStatusObjectives\determineStatus(), ilLPStatusSCORM\determineStatus(), and ilLPStatusCollection\determineStatus().
|
static |
Definition at line 629 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPStatusQuestions\_getCompleted(), ilLPStatusManual\_getInProgress(), ilLPStatusQuestions\_getInProgress(), ilLPStatusVisitedPages\_getInProgress(), ilLPStatusExerciseReturned\_getInProgress(), ilLPStatusManualByTutor\_getInProgress(), ilLPStatusCollection\_getInProgress(), ilLPStatusCollectionMobs\_getStatusInfo(), and ilLPStatusObjectives\_getStatusInfo().
|
staticprivate |
Definition at line 45 of file class.ilChangeEvent.php.