ILIAS
Release_4_1_x_branch Revision 61804
|
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) | |
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. |
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. |
Data Fields | |
$obj_id = null | |
$db = null |
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, ilLPStatusManual, ilLPStatusObjectives, ilLPStatusEvent, ilLPStatusExerciseReturned, ilLPStatusTestPassed, ilLPStatusSCORM, ilLPStatusSCORMPackage, ilLPStatusTypicalLearningTime, ilLPStatusVisits, and ilLPStatusTestFinished.
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, ilLPStatusSCORM, ilLPStatusTestPassed, ilLPStatusExerciseReturned, and ilLPStatusSCORMPackage.
Definition at line 72 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getInProgress | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusManualByTutor, ilLPStatusCollection, ilLPStatusManual, ilLPStatusObjectives, ilLPStatusEvent, ilLPStatusExerciseReturned, ilLPStatusSCORM, ilLPStatusTestPassed, ilLPStatusSCORMPackage, ilLPStatusVisits, ilLPStatusTestFinished, and ilLPStatusTypicalLearningTime.
Definition at line 59 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getNotAttempted | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusManualByTutor, ilLPStatusExerciseReturned, ilLPStatusCollection, ilLPStatusEvent, ilLPStatusObjectives, and ilLPStatusManual.
Definition at line 50 of file class.ilLPStatus.php.
Referenced by refreshStatus().
ilLPStatus::_getStatusInfo | ( | $a_obj_id | ) |
Reimplemented in ilLPStatusCollection, ilLPStatusSCORM, ilLPStatusTestPassed, ilLPStatusObjectives, ilLPStatusEvent, 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().
ilLPStatus::_updateStatus | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null |
|||
) |
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 191 of file class.ilLPStatus.php.
References determinePercentage(), determineStatus(), and writeStatus().
Referenced by 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 228 of file class.ilLPStatus.php.
References $ilDB, and ilLPStatusFactory\_getClassById().
Referenced by ilTrQuery\refreshObjectsStatus().
ilLPStatus::determinePercentage | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null |
|||
) |
Determine percentage.
@return |
Reimplemented in ilLPStatusSCORM, ilLPStatusTestPassed, ilLPStatusTypicalLearningTime, and ilLPStatusVisits.
Definition at line 204 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, ilLPStatusManualByTutor, ilLPStatusSCORM, ilLPStatusManual, ilLPStatusObjectives, ilLPStatusTestPassed, ilLPStatusEvent, ilLPStatusExerciseReturned, ilLPStatusTestFinished, ilLPStatusSCORMPackage, ilLPStatusTypicalLearningTime, and ilLPStatusVisits.
Definition at line 215 of file class.ilLPStatus.php.
Referenced by _updateStatus().
ilLPStatus::ilLPStatus | ( | $a_obj_id | ) |
Definition at line 37 of file class.ilLPStatus.php.
References $ilDB.
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().
ilLPStatus::refreshStatus | ( | $a_obj_id, | |
$a_users = null |
|||
) |
Refresh status.
@return |
Definition at line 280 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, and writeStatus().
|
static |
Sets all status to dirty.
For testing puproses.
@return |
Definition at line 474 of file class.ilLPStatus.php.
References $ilDB.
|
static |
Sets status of an object to dirty.
integer | object id |
Definition at line 490 of file class.ilLPStatus.php.
References $ilDB.
|
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 412 of file class.ilLPStatus.php.
References $ilDB, $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 |
Definition at line 326 of file class.ilLPStatus.php.
References $ilDB, $ret, ilObject\_lookupType(), ilLPStatusWrapper\_removeStatusCache(), and _updateStatus().
Referenced by _updateStatus(), 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.