ILIAS
Release_5_0_x_branch Revision 61816
|
Track access to ILIAS learning modules. More...
Public Member Functions | |
trackAccess ($a_page_id) | |
Track access to lm page. | |
trackLastPageAccess ($usr_id, $lm_id, $obj_id) | |
Track last accessed page for a learning module. | |
setCurrentPage ($a_val) | |
Set current page. | |
getCurrentPage () | |
Get current page. | |
getAllQuestionsCorrect () | |
Have all questoins been answered correctly (and questions exist)? | |
getIconForLMObject ($a_node, $a_highlighted_node=0) | |
Get icon for lm object. | |
hasPredIncorrectAnswers ($a_obj_id, $a_ignore_unlock=false) | |
Has predecessing incorrect answers. | |
getBlockedUsersInformation () | |
Get blocked users information. |
Static Public Member Functions | |
static | getInstance ($a_ref_id, $a_user_id=0) |
Get instance. | |
static | getInstanceByObjId ($a_obj_id, $a_user_id=0) |
Get instance. | |
static | _isNodeVisible ($a_node) |
Is node visible for the learner. |
Data Fields | |
const | NOT_ATTEMPTED = 0 |
const | IN_PROGRESS = 1 |
const | COMPLETED = 2 |
const | FAILED = 3 |
const | CURRENT = 99 |
Static Public Attributes | |
static | $instances = array() |
static | $instancesbyobj = array() |
Protected Member Functions | |
trackPageAndChapterAccess ($a_page_id) | |
Track page and chapter access. | |
loadLMTrackingData () | |
Load LM tracking data. | |
determineProgressStatus ($a_obj_id, &$a_has_pred_incorrect_answers, $a_has_pred_incorrect_not_unlocked_answers) | |
Determine progress status of nodes. |
Protected Attributes | |
$lm_ref_id | |
$lm_obj_id | |
$lm_tree | |
$lm_obj_ids = array() | |
$tree_arr = array() | |
$re_arr = array() | |
$loaded_for_node = false | |
$dirty = false | |
$page_questions = array() | |
$all_questions = array() | |
$answer_status = array() | |
$has_incorrect_answers = false | |
$current_page_id = 0 |
Private Member Functions | |
__construct ($a_id, $a_by_obj_id=false, $a_user_id) | |
Constructor. |
Track access to ILIAS learning modules.
Definition at line 12 of file class.ilLMTracker.php.
|
private |
Constructor.
ilObjLearningModule | $a_lm | learning module |
Definition at line 46 of file class.ilLMTracker.php.
References ilObject\_lookupObjId(), and getInstance().
|
static |
Is node visible for the learner.
mixed | $a_node | node object/array |
Definition at line 651 of file class.ilLMTracker.php.
References $lm_set, ilPageObject\_lookupActivationData(), ilPageObject\_lookupActive(), and ilUtil\now().
Referenced by ilLMTOCExplorerGUI\isNodeVisible().
|
protected |
Determine progress status of nodes.
int | $a_obj_id | lm object id |
Definition at line 408 of file class.ilLMTracker.php.
References COMPLETED, CURRENT, FAILED, getCurrentPage(), IN_PROGRESS, NOT_ATTEMPTED, and ilUtil\sortArray().
Referenced by loadLMTrackingData().
ilLMTracker::getAllQuestionsCorrect | ( | ) |
Have all questoins been answered correctly (and questions exist)?
Definition at line 391 of file class.ilLMTracker.php.
References loadLMTrackingData().
ilLMTracker::getBlockedUsersInformation | ( | ) |
Get blocked users information.
@return |
Definition at line 597 of file class.ilLMTracker.php.
References $ilDB, $ilUser, $lng, ilObjUser\_lookupName(), ilLMObject\_lookupTitle(), ilPageQuestionProcessor\getAnswerStatus(), and ilLMPageObject\queryQuestionsOfLearningModule().
ilLMTracker::getCurrentPage | ( | ) |
Get current page.
Definition at line 311 of file class.ilLMTracker.php.
References $current_page_id.
Referenced by determineProgressStatus(), and loadLMTrackingData().
ilLMTracker::getIconForLMObject | ( | $a_node, | |
$a_highlighted_node = 0 |
|||
) |
Get icon for lm object.
array | $a_node | node array |
int | $a_highlighted_node | current node id |
Definition at line 538 of file class.ilLMTracker.php.
References COMPLETED, FAILED, ilUtil\getImagePath(), IN_PROGRESS, and loadLMTrackingData().
|
static |
Get instance.
@return |
Definition at line 71 of file class.ilLMTracker.php.
References $ilUser.
Referenced by __construct(), ilLMBlockedUsersTableGUI\getBlockedUsers(), and ilLMPresentationGUI\getTracker().
|
static |
Get instance.
@return |
Definition at line 93 of file class.ilLMTracker.php.
References $ilUser.
Referenced by ilLPStatusQuestions\_getCompleted(), and ilLPStatusQuestions\determineStatus().
ilLMTracker::hasPredIncorrectAnswers | ( | $a_obj_id, | |
$a_ignore_unlock = false |
|||
) |
Has predecessing incorrect answers.
int | $a_obj_id |
Definition at line 568 of file class.ilLMTracker.php.
References $ret, and loadLMTrackingData().
|
protected |
Load LM tracking data.
Loaded when needed.
@return |
Definition at line 322 of file class.ilLMTracker.php.
References $ilDB, ilLMObject\_getAllLMObjectsOfLM(), determineProgressStatus(), ilPageQuestionProcessor\getAnswerStatus(), getCurrentPage(), and ilLMPageObject\queryQuestionsOfLearningModule().
Referenced by getAllQuestionsCorrect(), getIconForLMObject(), and hasPredIncorrectAnswers().
ilLMTracker::setCurrentPage | ( | $a_val | ) |
Set current page.
id | $a_val | current page id |
Definition at line 301 of file class.ilLMTracker.php.
ilLMTracker::trackAccess | ( | $a_page_id | ) |
Track access to lm page.
int | $a_page_id | page id |
Definition at line 118 of file class.ilLMTracker.php.
References ilLearningProgress\_tracProgress(), ilLPStatusWrapper\_updateStatus(), trackLastPageAccess(), and trackPageAndChapterAccess().
ilLMTracker::trackLastPageAccess | ( | $usr_id, | |
$lm_id, | |||
$obj_id | |||
) |
Track last accessed page for a learning module.
int | $usr_id | user id |
int | $lm_id | learning module id |
int | $obj_id | page id |
Definition at line 152 of file class.ilLMTracker.php.
References $ilDB.
Referenced by trackAccess().
|
protected |
Track page and chapter access.
Definition at line 179 of file class.ilLMTracker.php.
References $ilDB, $res, $row, ilObjUserTracking\_getValidTimeSpan(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by trackAccess().
|
protected |
Definition at line 29 of file class.ilLMTracker.php.
|
protected |
Definition at line 30 of file class.ilLMTracker.php.
|
protected |
Definition at line 32 of file class.ilLMTracker.php.
Referenced by getCurrentPage().
|
protected |
Definition at line 27 of file class.ilLMTracker.php.
|
protected |
Definition at line 31 of file class.ilLMTracker.php.
|
static |
Definition at line 34 of file class.ilLMTracker.php.
|
static |
Definition at line 35 of file class.ilLMTracker.php.
|
protected |
Definition at line 21 of file class.ilLMTracker.php.
|
protected |
Definition at line 23 of file class.ilLMTracker.php.
|
protected |
Definition at line 20 of file class.ilLMTracker.php.
|
protected |
Definition at line 22 of file class.ilLMTracker.php.
|
protected |
Definition at line 26 of file class.ilLMTracker.php.
|
protected |
Definition at line 28 of file class.ilLMTracker.php.
|
protected |
Definition at line 25 of file class.ilLMTracker.php.
|
protected |
Definition at line 24 of file class.ilLMTracker.php.
const ilLMTracker::COMPLETED = 2 |
Definition at line 16 of file class.ilLMTracker.php.
Referenced by determineProgressStatus(), and getIconForLMObject().
const ilLMTracker::CURRENT = 99 |
Definition at line 18 of file class.ilLMTracker.php.
Referenced by determineProgressStatus().
const ilLMTracker::FAILED = 3 |
Definition at line 17 of file class.ilLMTracker.php.
Referenced by determineProgressStatus(), and getIconForLMObject().
const ilLMTracker::IN_PROGRESS = 1 |
Definition at line 15 of file class.ilLMTracker.php.
Referenced by determineProgressStatus(), and getIconForLMObject().
const ilLMTracker::NOT_ATTEMPTED = 0 |
Definition at line 14 of file class.ilLMTracker.php.
Referenced by determineProgressStatus().