ILIAS
release_4-4 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, $a_force_raise=false) | |
New status handling (st: status, nr: accesses, p: percentage, t: time spent, m: mark) More... | |
determinePercentage ($a_obj_id, $a_usr_id, $a_obj=null) | |
Determine percentage. More... | |
determineStatus ($a_obj_id, $a_usr_id, $a_obj=null) | |
Determine status. More... | |
refreshStatus ($a_obj_id, $a_users=null) | |
Refresh status. More... | |
_lookupStatusChanged ($a_obj_id, $a_user_id) | |
Lookup status changed. More... | |
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. More... | |
static | writeStatus ($a_obj_id, $a_user_id, $a_status, $a_percentage=false, $a_force_per=false) |
Write status for user and object. More... | |
static | setInProgressIfNotAttempted ($a_obj_id, $a_user_id) |
This function shoudl be clalled for normal "read events". More... | |
static | setAllDirty () |
Sets all status to dirty. More... | |
static | setDirty ($a_obj_id) |
Sets status of an object to dirty. More... | |
static | _lookupStatus ($a_obj_id, $a_user_id) |
Lookup status. More... | |
static | _hasUserCompleted ($a_obj_id, $a_user_id) |
Lookup user object completion. More... | |
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 | preloadListGUIData ($a_obj_ids) |
static | getListGUIStatus ($a_obj_id) |
Data Fields | |
$obj_id = null | |
$db = null | |
const | LP_STATUS_NOT_ATTEMPTED = 'trac_no_attempted' |
const | LP_STATUS_IN_PROGRESS = 'trac_in_progress' |
const | LP_STATUS_COMPLETED = 'trac_completed' |
const | LP_STATUS_FAILED = 'trac_failed' |
const | LP_STATUS_NOT_ATTEMPTED_NUM = 0 |
const | LP_STATUS_IN_PROGRESS_NUM = 1 |
const | LP_STATUS_COMPLETED_NUM = 2 |
const | LP_STATUS_FAILED_NUM = 3 |
const | LP_STATUS_REGISTERED = 'trac_registered' |
const | LP_STATUS_NOT_REGISTERED = 'trac_not_registered' |
const | LP_STATUS_PARTICIPATED = 'trac_participated' |
const | LP_STATUS_NOT_PARTICIPATED = 'trac_not_participated' |
Static Public Attributes | |
static | $list_gui_cache |
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. More... | |
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
Definition at line 15 of file class.ilLPStatus.php.
ilLPStatus::_getCompleted | ( | $a_obj_id | ) |
Definition at line 69 of file class.ilLPStatus.php.
ilLPStatus::_getCountCompleted | ( | $a_obj_id | ) |
Definition at line 65 of file class.ilLPStatus.php.
ilLPStatus::_getCountFailed | ( | ) |
Definition at line 77 of file class.ilLPStatus.php.
ilLPStatus::_getCountInProgress | ( | $a_obj_id | ) |
Definition at line 56 of file class.ilLPStatus.php.
ilLPStatus::_getCountNotAttempted | ( | $a_obj_id | ) |
Definition at line 46 of file class.ilLPStatus.php.
ilLPStatus::_getFailed | ( | $a_obj_id | ) |
Definition at line 73 of file class.ilLPStatus.php.
ilLPStatus::_getInProgress | ( | $a_obj_id | ) |
Definition at line 60 of file class.ilLPStatus.php.
ilLPStatus::_getNotAttempted | ( | $a_obj_id | ) |
Definition at line 51 of file class.ilLPStatus.php.
ilLPStatus::_getStatusInfo | ( | $a_obj_id | ) |
Definition at line 81 of file class.ilLPStatus.php.
ilLPStatus::_getTypicalLearningTime | ( | $a_obj_id | ) |
Definition at line 85 of file class.ilLPStatus.php.
References ilMDEducational\_getTypicalLearningTimeSeconds().
|
static |
Lookup user object completion.
int | $a_obj_id | |
int | $a_user_id |
Definition at line 568 of file class.ilLPStatus.php.
Referenced by ilConditionHandler\_checkCondition(), ilObjSAHSLearningModuleAccess\_lookupUserCertificate(), ilTimingCache\_showWarning(), ilObjCourse\checkLPStatusSync(), ilSCORMVerificationTableGUI\getItems(), and ilCourseStart\isFullfilled().
|
static |
Get completed users for object.
int | $a_obj_id | |
array | $a_user_ids |
Definition at line 653 of file class.ilLPStatus.php.
|
static |
Get failed users for object.
int | $a_obj_id | |
array | $a_user_ids |
Definition at line 665 of file class.ilLPStatus.php.
|
static |
Get in progress users for object.
int | $a_obj_id | |
array | $a_user_ids |
Definition at line 677 of file class.ilLPStatus.php.
|
static |
Lookup status.
int | $a_obj_id | object id |
int | $a_user_id | user id |
Definition at line 532 of file class.ilLPStatus.php.
References ilLPStatusWrapper\_updateStatus().
Referenced by ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\__showEditUser(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), and ilObjSCORMInitData\getStatus().
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 579 of file class.ilLPStatus.php.
References ilLPStatusWrapper\_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 616 of file class.ilLPStatus.php.
References $res.
ilLPStatus::_updateStatus | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null , |
|||
$a_percentage = false , |
|||
$a_no_raise = false , |
|||
$a_force_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:
Definition at line 195 of file class.ilLPStatus.php.
References $changed, determinePercentage(), and determineStatus().
|
static |
This function checks whether the status for a given number of users is dirty and must be recalculated.
"Missing" records are not inserted!
Definition at line 241 of file class.ilLPStatus.php.
References $r, and ilLPStatusFactory\_getInstance().
Referenced by ilTrQuery\refreshObjectsStatus().
ilLPStatus::determinePercentage | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null |
|||
) |
Determine percentage.
Definition at line 217 of file class.ilLPStatus.php.
Referenced by _updateStatus(), and refreshStatus().
ilLPStatus::determineStatus | ( | $a_obj_id, | |
$a_usr_id, | |||
$a_obj = null |
|||
) |
Determine status.
Definition at line 228 of file class.ilLPStatus.php.
Referenced by _updateStatus().
|
static |
Definition at line 769 of file class.ilLPStatus.php.
Referenced by ilObjectListGUI\insertProperties().
ilLPStatus::ilLPStatus | ( | $a_obj_id | ) |
Definition at line 38 of file class.ilLPStatus.php.
|
static |
Definition at line 682 of file class.ilLPStatus.php.
References $ilUser, $lng, $obj_id, $path, $res, $row, $valid, ilObjUserTracking\_enabledLearningProgress(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjUserTracking\_hasLearningProgressListGUI(), ilLPObjSettings\_lookupDBModeForObjects(), ilObjectLP\getInstance(), ilUtil\img(), ilLPObjSettings\LP_MODE_DEACTIVATED, and ilLPObjSettings\LP_MODE_UNDEFINED.
Referenced by ilObjectListGUIPreloader\preload().
|
protected |
Definition at line 287 of file class.ilLPStatus.php.
ilLPStatus::refreshStatus | ( | $a_obj_id, | |
$a_users = null |
|||
) |
Refresh status.
Definition at line 305 of file class.ilLPStatus.php.
References $failed, ilLPStatusWrapper\_getCompleted(), ilLPStatusWrapper\_getFailed(), ilLPStatusWrapper\_getInProgress(), ilLPStatusWrapper\_getNotAttempted(), ilLPStatusWrapper\_updateStatus(), and determinePercentage().
|
static |
Sets all status to dirty.
For testing puproses.
Definition at line 500 of file class.ilLPStatus.php.
|
static |
Sets status of an object to dirty.
integer | object id |
Definition at line 516 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 ilLPStatusWrapper\_updateStatus().
Referenced by ilLearningProgress\_tracProgress().
|
static |
Write status for user and object.
Definition at line 363 of file class.ilLPStatus.php.
References $ret, ilObject\_lookupType(), ilLPStatusWrapper\_removeStatusCache(), and ilLPStatusWrapper\_updateStatus().
Referenced by ilLPStatusSCORMPackage\refreshStatus(), ilLPStatusSCORM\refreshStatus(), ilObjSCORMTracking\syncGlobalStatus(), and ilSCORM2004StoreData\syncGlobalStatus().
ilLPStatus::$db = null |
Definition at line 19 of file class.ilLPStatus.php.
|
static |
Definition at line 21 of file class.ilLPStatus.php.
ilLPStatus::$obj_id = null |
Definition at line 17 of file class.ilLPStatus.php.
Referenced by preloadListGUIData().
const ilLPStatus::LP_STATUS_COMPLETED = 'trac_completed' |
Definition at line 25 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilObjCourseGUI\fetchPrintMemberData(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilTrQuery\getSCOsStatusForUser(), ilTrQuery\getSubItemsStatusForUser(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
const ilLPStatus::LP_STATUS_COMPLETED_NUM = 2 |
Definition at line 30 of file class.ilLPStatus.php.
Referenced by ilLPObjectStatisticsLPTableGUI\__construct(), ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\__showEditUser(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilLMExplorer\checkLPIcon(), ilLMExplorerGUI\checkLPIcon(), ilTrSummaryTableGUI\fillHeaderCSV(), ilTrSummaryTableGUI\fillHeaderExcel(), ilLPProgressTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\getGraph(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilTrQuery\getObjectivesStatusForUser(), ilTrQuery\getObjectsDataForUser(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilCourseAppEventListener\handleEvent(), ilLearningProgressGUI\initCollectionManualForm(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), and ilLearningProgressGUI\showtlt().
const ilLPStatus::LP_STATUS_FAILED = 'trac_failed' |
Definition at line 26 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilObjCourseGUI\fetchPrintMemberData(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilTrQuery\getSCOsStatusForUser(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
const ilLPStatus::LP_STATUS_FAILED_NUM = 3 |
Definition at line 31 of file class.ilLPStatus.php.
Referenced by ilLPObjectStatisticsLPTableGUI\__construct(), ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilTrSummaryTableGUI\fillHeaderCSV(), ilTrSummaryTableGUI\fillHeaderExcel(), ilLPObjectStatisticsLPTableGUI\getGraph(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilTrQuery\getObjectsDataForUser(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilTrSummaryTableGUI\initFilter(), and ilTrObjectUsersPropsTableGUI\initFilter().
const ilLPStatus::LP_STATUS_IN_PROGRESS = 'trac_in_progress' |
Definition at line 24 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilObjCourseGUI\fetchPrintMemberData(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilTrQuery\getSCOsStatusForUser(), ilTrQuery\getSubItemsStatusForUser(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
const ilLPStatus::LP_STATUS_IN_PROGRESS_NUM = 1 |
Definition at line 29 of file class.ilLPStatus.php.
Referenced by ilLPObjectStatisticsLPTableGUI\__construct(), ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilLMExplorer\checkLPIcon(), ilLMExplorerGUI\checkLPIcon(), ilTrSummaryTableGUI\fillHeaderCSV(), ilTrSummaryTableGUI\fillHeaderExcel(), ilLPObjectStatisticsLPTableGUI\getGraph(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilTrQuery\getObjectsDataForUser(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), and ilLearningProgressGUI\showtlt().
const ilLPStatus::LP_STATUS_NOT_ATTEMPTED = 'trac_no_attempted' |
Definition at line 23 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilObjCourseGUI\fetchPrintMemberData(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilTrQuery\getSCOsStatusForUser(), ilTrQuery\getSubItemsStatusForUser(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().
const ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM = 0 |
Definition at line 28 of file class.ilLPStatus.php.
Referenced by ilLPObjectStatisticsLPTableGUI\__construct(), ilLearningProgressBaseGUI\__readStatus(), ilLearningProgressBaseGUI\_getStatusText(), ilTrQuery\buildFilters(), ilLMExplorer\checkLPIcon(), ilLMExplorerGUI\checkLPIcon(), ilTrSummaryTableGUI\fillHeaderCSV(), ilTrSummaryTableGUI\fillHeaderExcel(), ilLPObjectStatisticsLPTableGUI\getGraph(), ilTrMatrixTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilTrQuery\getObjectsDataForUser(), ilLearningProgressGUI\initCollectionManualForm(), ilTrSummaryTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), and ilLearningProgressGUI\showtlt().
const ilLPStatus::LP_STATUS_NOT_PARTICIPATED = 'trac_not_participated' |
Definition at line 36 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\_getImagePathForStatus().
const ilLPStatus::LP_STATUS_NOT_REGISTERED = 'trac_not_registered' |
Definition at line 34 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\_getImagePathForStatus().
const ilLPStatus::LP_STATUS_PARTICIPATED = 'trac_participated' |
Definition at line 35 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\_getImagePathForStatus().
const ilLPStatus::LP_STATUS_REGISTERED = 'trac_registered' |
Definition at line 33 of file class.ilLPStatus.php.
Referenced by ilLearningProgressBaseGUI\_getImagePathForStatus().