ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes. More...
Static Public Member Functions | |
static | _getCountNotAttempted ($a_obj_id) |
Static function to read the number of user who have the status 'not_attempted'. More... | |
static | _getNotAttempted ($a_obj_id) |
Static function to read the number of user who have the status 'not_attempted'. More... | |
static | _getCountInProgress ($a_obj_id) |
Static function to read the number of user who have the status 'in_progress'. More... | |
static | _getInProgress ($a_obj_id) |
Static function to read users who have the status 'in_progress'. More... | |
static | _getCountCompleted ($a_obj_id) |
Static function to read the number of user who have the status 'completed'. More... | |
static | _getCompleted ($a_obj_id) |
Static function to read the users who have the status 'completed'. More... | |
static | _getCountFailed ($a_obj_id) |
Static function to read the number of user who have the status 'failed'. More... | |
static | _getFailed ($a_obj_id) |
Static function to read the users who have the status 'completed'. More... | |
static | _getStatusInfo ($a_obj_id) |
Reads informations about the object e.g test results, tlt, number of visits. More... | |
static | _resetInfoCaches ($a_obj_id) |
static | _getTypicalLearningTime ($a_obj_id) |
Reads Typical learning time. More... | |
static | _getCountNotAttemptedByType ($a_obj_id, $a_type) |
Static function to read the number of user who have the status 'not_attempted'. More... | |
static | _getNotAttemptedByType ($a_obj_id, $a_type) |
static | _getCountInProgressByType ($a_obj_id, $a_type) |
static | _getInProgressByType ($a_obj_id, $a_type) |
static | _getCountCompletedByType ($a_obj_id, $a_type) |
static | _getCompletedByType ($a_obj_id, $a_type) |
static | _getCountFailedByType ($a_obj_id, $a_type) |
static | _getFailedByType ($a_obj_id, $a_type) |
static | _getStatusInfoByType ($a_obj_id, $a_type) |
static | _updateStatus ($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_force_raise=false) |
Update status. More... | |
static | _setDirty ($a_obj_id) |
Set dirty. More... | |
static | _refreshStatus ($a_obj_id, $a_users=null) |
Set dirty. More... | |
static | _determineStatus ($a_obj_id, $a_usr_id) |
Determine status. More... | |
static | _removeStatusCache ($a_obj_id, $a_usr_id) |
static | _lookupCompletedForObject ($a_obj_id, $a_user_ids=null) |
Get completed users for object. More... | |
static | _lookupFailedForObject ($a_obj_id, $a_user_ids=null) |
Get failed users for object. More... | |
static | _lookupInProgressForObject ($a_obj_id, $a_user_ids=null) |
Get in progress users for object. More... | |
Static Private Attributes | |
static | $status_cache = array() |
static | $info_cache = array() |
static | $failed_cache = array() |
static | $completed_cache = array() |
static | $in_progress_cache = array() |
static | $not_attempted_cache = array() |
Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes.
It caches all function calls using the obj_id as key TODO: substitute all ilStatus calls with this functions
Definition at line 18 of file class.ilLPStatusWrapper.php.
|
static |
Determine status.
Definition at line 302 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getInstance().
Referenced by ilLPStatusCollection\determineGroupingStatus(), ilStudyProgrammeLPTest\testInitialLPActive(), ilStudyProgrammeLPTest\testInitialLPDraft(), ilStudyProgrammeLPTest\testInitialProgressOutdated(), ilStudyProgrammeLPTest\testMarkAccredited(), ilStudyProgrammeLPTest\testMarkFailed(), ilStudyProgrammeLPTest\testMarkNotFailed(), ilStudyProgrammeLPTest\testMarkNotRelevant(), ilStudyProgrammeLPTest\testNewNodesAreNotRelevant(), and ilStudyProgrammeLPTest\testUnmarkAccredited().
|
static |
Static function to read the users who have the status 'completed'.
Definition at line 86 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilLPStatusCollection\_getCompleted(), _getCountCompleted(), ilLPStatusQuestions\_getInProgress(), ilLPStatusVisitedPages\_getInProgress(), ilLPStatusCollectionManual\_getInProgress(), ilLPStatusCollectionTLT\_getInProgress(), ilLPStatusManual\_getInProgress(), ilLPStatusSCORM\_getInProgress(), ilLPStatusExerciseReturned\_getInProgress(), ilLPStatusCollection\_getInProgress(), ilLPStatusManualByTutor\_getInProgress(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusExerciseReturned\_getNotAttempted(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusManualByTutor\_getNotAttempted(), ilLPStatusSCORM\_getNotAttempted(), ilSoapLearningProgressAdministration\applyProgressFilter(), ilLPStatusSCORMPackage\refreshStatus(), ilLPStatusSCORM\refreshStatus(), and ilLPStatus\refreshStatus().
|
static |
Definition at line 212 of file class.ilLPStatusWrapper.php.
References $a_type, ilLPStatusFactory\_getClassByIdAndType(), and array.
Referenced by _getCountCompletedByType().
|
static |
Static function to read the number of user who have the status 'completed'.
Definition at line 78 of file class.ilLPStatusWrapper.php.
References _getCompleted().
|
static |
Definition at line 207 of file class.ilLPStatusWrapper.php.
References $a_type, and _getCompletedByType().
|
static |
Static function to read the number of user who have the status 'failed'.
Definition at line 100 of file class.ilLPStatusWrapper.php.
References _getFailed().
|
static |
Definition at line 226 of file class.ilLPStatusWrapper.php.
References $a_type, and _getFailedByType().
|
static |
Static function to read the number of user who have the status 'in_progress'.
Definition at line 53 of file class.ilLPStatusWrapper.php.
References _getInProgress().
|
static |
Definition at line 188 of file class.ilLPStatusWrapper.php.
References $a_type, and _getInProgressByType().
|
static |
Static function to read the number of user who have the status 'not_attempted'.
Definition at line 30 of file class.ilLPStatusWrapper.php.
References _getNotAttempted().
|
static |
Static function to read the number of user who have the status 'not_attempted'.
Definition at line 169 of file class.ilLPStatusWrapper.php.
References $a_type, and _getNotAttemptedByType().
|
static |
Static function to read the users who have the status 'completed'.
Definition at line 108 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilLPStatusSCORM\_getCompleted(), ilLPStatusCollection\_getCompleted(), _getCountFailed(), ilLPStatusCollection\_getFailed(), ilLPStatusSCORM\_getInProgress(), ilLPStatusExerciseReturned\_getInProgress(), ilLPStatusCollection\_getInProgress(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusExerciseReturned\_getNotAttempted(), ilLPStatusSCORM\_getNotAttempted(), ilSoapLearningProgressAdministration\applyProgressFilter(), ilLPStatusSCORMPackage\refreshStatus(), ilLPStatusSCORM\refreshStatus(), and ilLPStatus\refreshStatus().
|
static |
Definition at line 231 of file class.ilLPStatusWrapper.php.
References $a_type, ilLPStatusFactory\_getClassByIdAndType(), and array.
Referenced by _getCountFailedByType().
|
static |
Static function to read users who have the status 'in_progress'.
Definition at line 61 of file class.ilLPStatusWrapper.php.
References $ilBench, and ilLPStatusFactory\_getClassById().
Referenced by _getCountInProgress(), ilLPStatusCollection\_getInProgress(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusExerciseReturned\_getNotAttempted(), ilLPStatusManualByTutor\_getNotAttempted(), ilLPStatusSCORM\_getNotAttempted(), ilSoapLearningProgressAdministration\applyProgressFilter(), ilLPStatusSCORMPackage\refreshStatus(), ilLPStatusSCORM\refreshStatus(), and ilLPStatus\refreshStatus().
|
static |
Definition at line 193 of file class.ilLPStatusWrapper.php.
References $a_type, ilLPStatusFactory\_getClassByIdAndType(), and array.
Referenced by _getCountInProgressByType().
|
static |
Static function to read the number of user who have the status 'not_attempted'.
Definition at line 38 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by _getCountNotAttempted(), and ilLPStatus\refreshStatus().
|
static |
Definition at line 174 of file class.ilLPStatusWrapper.php.
References $a_type, ilLPStatusFactory\_getClassByIdAndType(), and array.
Referenced by _getCountNotAttemptedByType().
|
static |
Reads informations about the object e.g test results, tlt, number of visits.
Definition at line 124 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilLPStatusCollectionMobs\_getCompleted(), ilLPStatusCollectionTLT\_getCompleted(), ilLPStatusCollectionManual\_getCompleted(), ilLPStatusSCORM\_getCompleted(), ilLPStatusVisits\_getCompleted(), ilLPStatusTypicalLearningTime\_getCompleted(), ilLPStatusSCORMPackage\_getCompleted(), ilLPStatusObjectives\_getCompleted(), ilLPStatusEvent\_getCompleted(), ilLPStatusSCORMPackage\_getFailed(), ilLPStatusSCORM\_getFailed(), ilLPStatusObjectives\_getFailed(), ilLPStatusCollectionMobs\_getInProgress(), ilLPStatusCollectionManual\_getInProgress(), ilLPStatusCollectionTLT\_getInProgress(), ilLPStatusSCORM\_getInProgress(), ilLPStatusTypicalLearningTime\_getInProgress(), ilLPStatusVisits\_getInProgress(), ilLPStatusObjectives\_getInProgress(), ilLPStatusSCORMPackage\_getInProgress(), ilLPStatusEvent\_getInProgress(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusCollection\_getTypicalLearningTime(), ilLPStatusVisits\determineStatus(), ilLPStatusTypicalLearningTime\determineStatus(), ilTrQuery\getSCOsStatusForUser(), ilTrQuery\getSubItemsStatusForUser(), and ilLPStatusTestPassed\getUserIdsByResultArrayStatus().
|
static |
Definition at line 245 of file class.ilLPStatusWrapper.php.
References $a_type, ilLPStatusFactory\_getClassByIdAndType(), and array.
|
static |
Reads Typical learning time.
Mode collection is recursive for all assigned items
Definition at line 147 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById(), and array.
Referenced by ilLPStatusCollection\_getTypicalLearningTime().
|
static |
Get completed users for object.
int | $a_obj_id | |
array | $a_user_ids |
Definition at line 328 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
|
static |
Get failed users for object.
int | $a_obj_id | |
array | $a_user_ids |
Definition at line 341 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
|
static |
Get in progress users for object.
int | $a_obj_id | |
array | $a_user_ids |
Definition at line 354 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
|
static |
Set dirty.
integer | object id |
array | user ids |
Definition at line 290 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getInstance().
Referenced by ilCourseObjective\_deleteAll(), ilLOEditorGUI\activateObjectives(), ilCourseObjective\add(), ilLPListOfSettingsGUI\assign(), ilLOEditorGUI\deactivateObjectives(), ilLPListOfSettingsGUI\deassign(), ilExerciseMembers\delete(), ilSCORMItem\delete(), ilCourseObjective\delete(), ilLOEditorGUI\deleteObjectives(), ilLPObjSettings\doLPRefresh(), ilLPListOfSettingsGUI\groupMaterials(), ilObjectLP\handleMove(), ilObjSCORMLearningModule\importRaw(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilLMObject\MDUpdateListener(), ilObjContentObject\MDUpdateListener(), ilStudyProgrammeUserProgress\refreshLPStatus(), ilLPListOfSettingsGUI\releaseMaterials(), ilSCORM13Package\removeCMIData(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilLOEditorGUI\saveSettings(), ilConditionHandlerGUI\updateCondition(), ilIndividualAssessmentLPInterface\updateLPStatusByIds(), ilIndividualAssessmentLPInterface\updateLPStatusOfMember(), ilObjectLP\updateParentCollections(), and ilLPListOfSettingsGUI\updateTLT().
|
static |
Definition at line 316 of file class.ilLPStatusWrapper.php.
Referenced by ilLPStatus\writeStatus().
|
static |
Definition at line 135 of file class.ilLPStatusWrapper.php.
|
static |
Set dirty.
integer | object id |
Definition at line 278 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getInstance().
|
static |
Update status.
Definition at line 265 of file class.ilLPStatusWrapper.php.
References ilLPStatusFactory\_getInstance().
Referenced by ilTestScoringByQuestionsGUI\__construct(), ilCourseObjectiveResult\__updatePassed(), ilLearningProgressBaseGUI\__updateUser(), ilObjSCORMTracking\_insertTrackData(), ilLPStatus\_lookupStatus(), ilLPStatus\_lookupStatusChanged(), ilEventParticipants\_register(), ilLPStatusCollectionManual\_setObjectStatus(), ilEventParticipants\_unregister(), ilEventParticipants\_updateParticipation(), ilExerciseMembers\_writeReturned(), ilExerciseMembers\_writeStatus(), ilExerciseMembers\assignMember(), ilSurveyExecutionGUI\confirmedFinish(), ilExerciseMembers\deassignMember(), ilObjSCORMLearningModule\decreaseAttemptsForUser(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSCORMLearningModule\deleteTrackingDataOfUsers(), ilObjMediaCast\handleLPUpdate(), assFileUpload\handleSubmission(), ilExerciseMembers\ilClone(), ilSCORMPresentationGUI\increase_attemptAndsave_module_version(), ilLPStatus\refreshStatus(), ilCourseObjectiveResult\reset(), ilObjectLP\resetLPDataForUserIds(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilInfoScreenGUI\saveProgress(), ilTestSessionDynamicQuestionSet\saveToDb(), ilObjFileGUI\sendFile(), ilLPStatus\setInProgressIfNotAttempted(), ilObjSCORMTracking\store(), ilObjCourse\syncMembersStatusWithLP(), ilLMTracker\trackAccess(), ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten(), ilTestOutputGUI\updateLearningProgressOnTestStart(), ilObjCourseGUI\updateLPFromStatus(), ilLOTestQuestionAdapter\updateQuestionResult(), ilEventParticipants\updateUser(), and ilLPStatus\writeStatus().
|
staticprivate |
Definition at line 23 of file class.ilLPStatusWrapper.php.
|
staticprivate |
Definition at line 22 of file class.ilLPStatusWrapper.php.
|
staticprivate |
Definition at line 24 of file class.ilLPStatusWrapper.php.
|
staticprivate |
Definition at line 21 of file class.ilLPStatusWrapper.php.
|
staticprivate |
Definition at line 25 of file class.ilLPStatusWrapper.php.
|
staticprivate |
Definition at line 20 of file class.ilLPStatusWrapper.php.