|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Class ilChangeEvent tracks change events on repository objects. More...
Collaboration diagram for ilChangeEvent: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 44 of file class.ilChangeEvent.php.
|
static |
Activates change event tracking.
Definition at line 676 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $ilSetting, $res, and _isActive().
Referenced by ilObjRepositorySettingsGUI\saveSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 541 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().
Here is the caller graph for this function:
|
static |
Deactivates change event tracking.
Definition at line 730 of file class.ilChangeEvent.php.
References $DIC, and $ilSetting.
Referenced by ilObjRepositorySettingsGUI\saveSettings().
Here is the caller graph for this function:
|
static |
Delete object entries.
Definition at line 753 of file class.ilChangeEvent.php.
Referenced by ilObjectLP\handleDelete().
Here is the caller graph for this function:
|
static |
Definition at line 772 of file class.ilChangeEvent.php.
|
static |
Definition at line 784 of file class.ilChangeEvent.php.
Referenced by ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSCORMLearningModule\deleteTrackingDataOfUsers(), and ilObjectLP\resetLPDataForUserIds().
Here is the caller graph for this function:
|
static |
Definition at line 799 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilObjectLP\gatherLPUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns true, if change event tracking is active.
Definition at line 742 of file class.ilChangeEvent.php.
References $DIC, and $ilSetting.
Referenced by ilObjUserTracking\__readSettings(), _activate(), ilObjRepositorySettingsGUI\addToExternalSettingsForm(), ilInfoScreenGUI\buildPublicAccessExportButton(), and ilObjRepositorySettingsGUI\initSettingsForm().
Here is the caller graph for this function:
|
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 579 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 589 of file class.ilChangeEvent.php.
References $DIC, $ilDB, and $res.
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().
Here is the caller graph for this function:
|
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 559 of file class.ilChangeEvent.php.
|
static |
Definition at line 323 of file class.ilChangeEvent.php.
References $DIC, $ilDB, ilObjUserTracking\_enabledObjectStatistics(), and ilObject\_lookupType().
Here is the call graph for this function:
|
static |
Definition at line 118 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $path, $res, _catchupWriteEvents(), ilObjUserTracking\_getValidTimeSpan(), ilObject\_lookupObjId(), ilObject\_lookupType(), and ILIAS\Repository\int().
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 62 of file class.ilChangeEvent.php.
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().
Here is the caller graph for this function:
|
static |
Definition at line 374 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 820 of file class.ilChangeEvent.php.
References $DIC, $ilDB, and $res.
|
static |
Has accessed.
Definition at line 652 of file class.ilChangeEvent.php.
Referenced by ilLPStatusContentVisited\_getCompleted(), ilLPStatusVisitedPages\determineStatus(), ilLPStatusManual\determineStatus(), ilLPStatusQuestions\determineStatus(), ilLPStatusVisits\determineStatus(), ilLPStatusTypicalLearningTime\determineStatus(), ilLPStatusExerciseReturned\determineStatus(), ilLPStatusManualByTutor\determineStatus(), ilLPStatusCollectionMobs\determineStatus(), ilLPStatusObjectives\determineStatus(), ilLPStatusSCORM\determineStatus(), and ilLPStatusCollection\determineStatus().
Here is the caller graph for this function:
|
static |
Definition at line 630 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 46 of file class.ilChangeEvent.php.