|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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, $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 | _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 616 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 |
Deactivates change event tracking.
Definition at line 670 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 693 of file class.ilChangeEvent.php.
Referenced by ilObjectLP\handleDelete().
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 724 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 739 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 682 of file class.ilChangeEvent.php.
References $DIC, and $ilSetting.
Referenced by ilObjUserTracking\__readSettings(), _activate(), ilObjRepositorySettingsGUI\addToExternalSettingsForm(), and ilObjRepositorySettingsGUI\initSettingsForm().
Here is the caller graph for this function:
|
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 529 of file class.ilChangeEvent.php.
References $counter, $DIC, $ilDB, and $res.
Referenced by ilLPStatusContentVisited\_getCompleted(), ilLPStatusTypicalLearningTime\_getCompleted(), ilLPStatusVisits\_getCompleted(), ilLPStatusTypicalLearningTime\_getInProgress(), ilLPStatusVisits\_getInProgress(), ilLearningProgress\_getProgress(), ilLearningProgress\_lookupProgressByObjId(), ilLPStatusTypicalLearningTime\determineStatus(), ilLPStatusVisits\determineStatus(), and ILIAS\MediaCast\Presentation\VideoViewGUI\renderSideColumn().
Here is the caller graph for this function:
|
static |
Definition at line 318 of file class.ilChangeEvent.php.
|
static |
Definition at line 118 of file class.ilChangeEvent.php.
Referenced by ilObjSCORMTracking\_syncReadEvent(), ilSCORM2004Tracking\_syncReadEvent(), ilRemoteObjectBaseGUI\callObject(), ilSurveyExecutionGUI\executeCommand(), ilObjForumGUI\getContent(), ilWikiPageGUI\increaseViewCount(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjIndividualAssessmentGUI\recordIndividualAssessmentRead(), ilObjLearningSequenceGUI\recordLearningSequenceRead(), ilObjLinkResourceGUI\redirectToLink(), ilObjBlogGUI\renderFullscreenHeader(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilObjCategoryGUI\renderObject(), ilObjFileGUI\sendFile(), ilContainerContentGUI\setOutput(), ilObjMediaCastGUI\showContentObject(), ilObjSCORMTracking\syncGlobalStatus(), ilLMTracker\trackAccess(), ilObjCmiXapiGUI\trackObjectReadEvent(), ilObjLTIConsumerGUI\trackObjectReadEvent(), ilObjTestGUI\trackTestObjectReadEvent(), ilObjectGUI\viewObject(), and ilObjForumGUI\viewThreadObject().
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.
References $ilDB.
Referenced by ilObjCourseGUI\afterSave(), ILIAS\Repository\Deletion\EventStandardAdapter\beforeSubtreeRemoval(), ilContainerGUI\pasteObject(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObject2GUI\putObjectInTree(), ilObjectGUI\putObjectInTree(), ilObjCategoryGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjGroupGUI\updateObject(), and ilObjRootFolderGUI\updateObject().
Here is the caller graph for this function:
|
static |
Definition at line 369 of file class.ilChangeEvent.php.
References $check, $DIC, and $ilDB.
Referenced by ilLPObjectStatisticsGUI\adminSync().
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 760 of file class.ilChangeEvent.php.
|
static |
Has accessed.
Definition at line 592 of file class.ilChangeEvent.php.
Referenced by ilLPStatusCollection\determineStatus(), ilLPStatusExerciseReturned\determineStatus(), ilLPStatusManual\determineStatus(), ilLPStatusManualByTutor\determineStatus(), ilLPStatusObjectives\determineStatus(), ilLPStatusTypicalLearningTime\determineStatus(), ilLPStatusVisitedPages\determineStatus(), and ilLPStatusVisits\determineStatus().
Here is the caller graph for this function:
|
static |
Definition at line 570 of file class.ilChangeEvent.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPStatusQuestions\_getCompleted(), ilLPStatusCollection\_getInProgress(), ilLPStatusExerciseReturned\_getInProgress(), ilLPStatusManual\_getInProgress(), ilLPStatusManualByTutor\_getInProgress(), ilLPStatusQuestions\_getInProgress(), ilLPStatusVisitedPages\_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.