ILIAS
release_4-3 Revision
|
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ... More...
Public Member Functions | |
ilLPStatus ($a_obj_id) | |
_getCountNotAttempted ($a_obj_id) | |
_getNotAttempted ($a_obj_id) | |
_getCountInProgress ($a_obj_id) | |
_getInProgress ($a_obj_id) | |
_getCountCompleted ($a_obj_id) | |
_getCompleted ($a_obj_id) | |
_getFailed ($a_obj_id) | |
_getCountFailed () | |
_getStatusInfo ($a_obj_id) | |
_getTypicalLearningTime ($a_obj_id) | |
_updateStatus ($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_no_raise=false) | |
New status handling (st: status, nr: accesses, p: percentage, t: time spent, m: mark) | |
determinePercentage ($a_obj_id, $a_usr_id, $a_obj=null) | |
Determine percentage. | |
determineStatus ($a_obj_id, $a_usr_id, $a_obj=null) | |
Determine status. | |
refreshStatus ($a_obj_id, $a_users=null) | |
Refresh status. | |
_lookupStatus ($a_obj_id, $a_user_id) | |
Lookup status. | |
_lookupStatusChanged ($a_obj_id, $a_user_id) | |
Lookup status changed. |
Static Public Member Functions | |
static | checkStatusForObject ($a_obj_id, $a_users=false) |
This function checks whether the status for a given number of users is dirty and must be recalculated. | |
static | writeStatus ($a_obj_id, $a_user_id, $a_status, $a_percentage=false, $a_force_per=false) |
Write status for user and object. | |
static | setInProgressIfNotAttempted ($a_obj_id, $a_user_id) |
This function shoudl be clalled for normal "read events". | |
static | setAllDirty () |
Sets all status to dirty. | |
static | setDirty ($a_obj_id) |
Sets status of an object to dirty. | |
static | _lookupCompletedForObject ($a_obj_id, $a_user_ids=null) |
Get completed users for object. | |
static | _lookupFailedForObject ($a_obj_id, $a_user_ids=null) |
Get failed users for object. | |
static | _lookupInProgressForObject ($a_obj_id, $a_user_ids=null) |
Get in progress users for object. |
Data Fields | |
$obj_id = null | |
$db = null |
Protected Member Functions | |
raiseEvent ($a_obj_id, $a_usr_id, $a_status, $a_percentage) |
Static Protected Member Functions | |
static | _lookupStatusForObject ($a_obj_id, $a_status, $a_user_ids=null) |
Get users with given status for object. |
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
Definition at line 31 of file class.ilLPStatus.php.
ilLPStatus::_getCompleted | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusManualByTutor, ilLPStatusCollection, ilLPStatusPlugin, ilLPStatusEvent, ilLPStatusExerciseReturned, ilLPStatusTestPassed, ilLPStatusObjectives, ilLPStatusTestFinished, ilLPStatusSCORMPackage, ilLPStatusTypicalLearningTime, ilLPStatusVisits, ilLPStatusSCORM, and ilLPStatusManual.
Definition at line 68 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getCountCompleted | ( | $a_obj_id | ) |
Definition at line 64 of file class.ilLPStatus.php.
ilLPStatus::_getCountFailed | ( | ) |
Definition at line 76 of file class.ilLPStatus.php.
ilLPStatus::_getCountInProgress | ( | $a_obj_id | ) |
Definition at line 55 of file class.ilLPStatus.php.
ilLPStatus::_getCountNotAttempted | ( | $a_obj_id | ) |
Definition at line 45 of file class.ilLPStatus.php.
ilLPStatus::_getFailed | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusCollection, ilLPStatusTestPassed, ilLPStatusPlugin, ilLPStatusExerciseReturned, ilLPStatusSCORM, and ilLPStatusSCORMPackage.
Definition at line 72 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getInProgress | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusManualByTutor, ilLPStatusPlugin, ilLPStatusEvent, ilLPStatusCollection, ilLPStatusExerciseReturned, ilLPStatusTestPassed, ilLPStatusSCORMPackage, ilLPStatusObjectives, ilLPStatusVisits, ilLPStatusSCORM, ilLPStatusTestFinished, ilLPStatusTypicalLearningTime, and ilLPStatusManual.
Definition at line 59 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getNotAttempted | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusTestPassed, ilLPStatusTestFinished, ilLPStatusManualByTutor, ilLPStatusPlugin, ilLPStatusExerciseReturned, ilLPStatusCollection, ilLPStatusEvent, and ilLPStatusObjectives.
Definition at line 50 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getStatusInfo | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusCollection, ilLPStatusTestPassed, ilLPStatusSCORM, ilLPStatusEvent, ilLPStatusObjectives, ilLPStatusTypicalLearningTime, ilLPStatusSCORMPackage, and ilLPStatusVisits.
Definition at line 80 of file class.ilLPStatus.php.
ilLPStatus::_getTypicalLearningTime | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusCollection.
Definition at line 84 of file class.ilLPStatus.php.
References ilMDEducational\_getTypicalLearningTimeSeconds().
|
static |
Get completed users for object.
int | $a_obj_id | |
array | $a_user_ids |
Reimplemented in ilLPStatusCollection, ilLPStatusEvent, ilLPStatusManualByTutor, ilLPStatusObjectives, and ilLPStatusExerciseReturned.
Definition at line 664 of file class.ilLPStatus.php.
References _lookupStatusForObject(), and LP_STATUS_COMPLETED_NUM.
|
static |
Get failed users for object.
int | $a_obj_id | |
array | $a_user_ids |
Reimplemented in ilLPStatusCollection, ilLPStatusEvent, ilLPStatusManualByTutor, ilLPStatusObjectives, ilLPStatusExerciseReturned, and ilLPStatusManual.
Definition at line 676 of file class.ilLPStatus.php.
References _lookupStatusForObject(), and LP_STATUS_FAILED_NUM.
|
static |
Get in progress users for object.
int | $a_obj_id | |
array | $a_user_ids |
Reimplemented in ilLPStatusCollection, ilLPStatusEvent, ilLPStatusManualByTutor, ilLPStatusObjectives, and ilLPStatusExerciseReturned.
Definition at line 688 of file class.ilLPStatus.php.
References _lookupStatusForObject(), and LP_STATUS_IN_PROGRESS_NUM.
ilLPStatus::_lookupStatus | ( | $a_obj_id, | |
$a_user_id | |||
) |
Lookup status.
int | $a_obj_id | object id |
int | $a_user_id | user id |
Definition at line 555 of file class.ilLPStatus.php.
References _updateStatus().
Referenced by ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\__showEditUser(), ilConditionHandler\_checkCondition(), ilObjSAHSLearningModuleAccess\_lookupUserCertificate(), ilTimingCache\_showWarning(), ilObjCourse\checkLPStatusSync(), ilLPStatusExerciseReturned\determineStatus(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), and ilCourseStart\isFullfilled().
ilLPStatus::_lookupStatusChanged | ( | $a_obj_id, | |
$a_user_id | |||
) |
Lookup status changed.
int | $a_obj_id | object id |
int | $a_user_id | user id |
Definition at line 590 of file class.ilLPStatus.php.
References _updateStatus().
Referenced by ilCertificateAdapter\getUserCompletionDate().
|
staticprotected |
Get users with given status for object.
int | $a_obj_id | |
int | $a_status | |
array | $a_user_ids |
Definition at line 627 of file class.ilLPStatus.php.
References $res.
Referenced by ilLPStatusExerciseReturned\_lookupCompletedForObject(), ilLPStatusObjectives\_lookupCompletedForObject(), ilLPStatusManualByTutor\_lookupCompletedForObject(), ilLPStatusEvent\_lookupCompletedForObject(), ilLPStatusCollection\_lookupCompletedForObject(), _lookupCompletedForObject(), ilLPStatusExerciseReturned\_lookupFailedForObject(), ilLPStatusCollection\_lookupFailedForObject(), _lookupFailedForObject(), ilLPStatusExerciseReturned\_lookupInProgressForObject(), ilLPStatusObjectives\_lookupInProgressForObject(), ilLPStatusManualByTutor\_lookupInProgressForObject(), ilLPStatusEvent\_lookupInProgressForObject(), ilLPStatusCollection\_lookupInProgressForObject(), and _lookupInProgressForObject().
ilLPStatus::_updateStatus | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null , |
|||
$a_percentage = false , |
|||
$a_no_raise = false |
|||
) |
New status handling (st: status, nr: accesses, p: percentage, t: time spent, m: mark)
Learning progress:
Added determine Status to:
Updating the status:
@return |
Definition at line 195 of file class.ilLPStatus.php.
References $changed, determinePercentage(), determineStatus(), raiseEvent(), and writeStatus().
Referenced by _lookupStatus(), _lookupStatusChanged(), refreshStatus(), setInProgressIfNotAttempted(), and writeStatus().
|
static |
This function checks whether the status for a given number of users is dirty and must be recalculated.
"Missing" records are not inserted!
@return |
Definition at line 240 of file class.ilLPStatus.php.
References ilLPStatusFactory\_getClassById().
Referenced by ilTrQuery\refreshObjectsStatus().
ilLPStatus::determinePercentage | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null |
|||
) |
Determine percentage.
@return |
Reimplemented in ilLPStatusSCORM, ilLPStatusTestPassed, ilLPStatusPlugin, ilLPStatusTypicalLearningTime, and ilLPStatusVisits.
Definition at line 216 of file class.ilLPStatus.php.
Referenced by _updateStatus(), and refreshStatus().
ilLPStatus::determineStatus | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null |
|||
) |
Determine status.
@return |
Reimplemented in ilLPStatusCollection, ilLPStatusSCORM, ilLPStatusTestPassed, ilLPStatusTestFinished, ilLPStatusManualByTutor, ilLPStatusEvent, ilLPStatusObjectives, ilLPStatusPlugin, ilLPStatusExerciseReturned, ilLPStatusSCORMPackage, ilLPStatusTypicalLearningTime, ilLPStatusVisits, and ilLPStatusManual.
Definition at line 227 of file class.ilLPStatus.php.
Referenced by _updateStatus().
ilLPStatus::ilLPStatus | ( | $a_obj_id | ) |
Definition at line 37 of file class.ilLPStatus.php.
Referenced by ilLPStatusManualByTutor\__construct(), ilLPStatusCollection\ilLPStatusCollection(), ilLPStatusEvent\ilLPStatusEvent(), ilLPStatusManual\ilLPStatusManual(), ilLPStatusObjectives\ilLPStatusObjectives(), ilLPStatusSCORM\ilLPStatusSCORM(), ilLPStatusSCORMPackage\ilLPStatusSCORMPackage(), ilLPStatusTestFinished\ilLPStatusTestFinished(), ilLPStatusTestPassed\ilLPStatusTestPassed(), ilLPStatusTypicalLearningTime\ilLPStatusTypicalLearningTime(), ilLPStatusVisits\ilLPStatusVisits(), and ilLPStatusExerciseReturned\ilLPStatusVisits().
|
protected |
Definition at line 287 of file class.ilLPStatus.php.
Referenced by _updateStatus(), and refreshStatus().
ilLPStatus::refreshStatus | ( | $a_obj_id, | |
$a_users = null |
|||
) |
Refresh status.
@return |
Definition at line 305 of file class.ilLPStatus.php.
References $failed, _getCompleted(), _getFailed(), _getInProgress(), _getNotAttempted(), _updateStatus(), determinePercentage(), LP_STATUS_COMPLETED_NUM, LP_STATUS_FAILED_NUM, LP_STATUS_IN_PROGRESS_NUM, LP_STATUS_NOT_ATTEMPTED_NUM, raiseEvent(), and writeStatus().
|
static |
Sets all status to dirty.
For testing puproses.
@return |
Definition at line 523 of file class.ilLPStatus.php.
|
static |
Sets status of an object to dirty.
integer | object id |
Definition at line 539 of file class.ilLPStatus.php.
|
static |
This function shoudl be clalled for normal "read events".
The "in progress" status is only written, if current status is "NOT ATTEMPTED"
Definition at line 461 of file class.ilLPStatus.php.
References $ret, ilObject\_lookupType(), _updateStatus(), LP_STATUS_IN_PROGRESS_NUM, and LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by ilLearningProgress\_tracProgress().
|
static |
Write status for user and object.
@return | bool |
Definition at line 363 of file class.ilLPStatus.php.
References $ret, ilObject\_lookupType(), ilLPStatusWrapper\_removeStatusCache(), and _updateStatus().
Referenced by _updateStatus(), ilLPStatusSCORM\refreshStatus(), and refreshStatus().
ilLPStatus::$db = null |
Definition at line 35 of file class.ilLPStatus.php.
ilLPStatus::$obj_id = null |
Definition at line 33 of file class.ilLPStatus.php.