|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Track access to ILIAS learning modules. More...
Collaboration diagram for ilLMTracker:Public Member Functions | |
| trackAccess ($a_page_id) | |
| Track access to lm page. More... | |
| trackLastPageAccess ($usr_id, $lm_id, $obj_id) | |
| Track last accessed page for a learning module. More... | |
| setCurrentPage ($a_val) | |
| Set current page. More... | |
| getCurrentPage () | |
| Get current page. More... | |
| getAllQuestionsCorrect () | |
| Have all questoins been answered correctly (and questions exist)? More... | |
| getIconForLMObject ($a_node, $a_highlighted_node=0) | |
| Get icon for lm object. More... | |
| hasPredIncorrectAnswers ($a_obj_id, $a_ignore_unlock=false) | |
| Has predecessing incorrect answers. More... | |
| getBlockedUsersInformation () | |
| Get blocked users information. More... | |
Static Public Member Functions | |
| static | getInstance ($a_ref_id, $a_user_id=0) |
| Get instance. More... | |
| static | getInstanceByObjId ($a_obj_id, $a_user_id=0) |
| Get instance. More... | |
| static | _isNodeVisible ($a_node) |
| Is node visible for the learner. More... | |
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. More... | |
| loadLMTrackingData () | |
| Load LM tracking data. More... | |
| determineProgressStatus ($a_obj_id, &$a_has_pred_incorrect_answers, &$a_has_pred_incorrect_not_unlocked_answers) | |
| Determine progress status of nodes. More... | |
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. More... | |
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 ilLMTree\getInstance().
Here is the call graph for this function:
|
static |
Is node visible for the learner.
| mixed | $a_node | node object/array |
Definition at line 653 of file class.ilLMTracker.php.
References $lm_set, ilPageObject\_lookupActivationData(), ilPageObject\_lookupActive(), and ilUtil\now().
Referenced by ilLMTOCExplorerGUI\isNodeVisible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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, determineProgressStatus(), FAILED, getCurrentPage(), IN_PROGRESS, NOT_ATTEMPTED, and ilUtil\sortArray().
Referenced by determineProgressStatus(), and loadLMTrackingData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLMTracker::getAllQuestionsCorrect | ( | ) |
Have all questoins been answered correctly (and questions exist)?
Definition at line 391 of file class.ilLMTracker.php.
References loadLMTrackingData().
Here is the call graph for this function:| ilLMTracker::getBlockedUsersInformation | ( | ) |
Get blocked users information.
return
Definition at line 599 of file class.ilLMTracker.php.
References $ilDB, $ilUser, $lng, ilObjUser\_lookupName(), ilLMObject\_lookupTitle(), ilPageQuestionProcessor\getAnswerStatus(), and ilLMPageObject\queryQuestionsOfLearningModule().
Here is the call graph for this function:| ilLMTracker::getCurrentPage | ( | ) |
Get current page.
Definition at line 311 of file class.ilLMTracker.php.
References $current_page_id.
Referenced by determineProgressStatus(), and loadLMTrackingData().
Here is the caller graph for this function:| 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 541 of file class.ilLMTracker.php.
References COMPLETED, FAILED, ilUtil\getImagePath(), IN_PROGRESS, and loadLMTrackingData().
Here is the call graph for this function:
|
static |
Get instance.
return
Definition at line 71 of file class.ilLMTracker.php.
References $ilUser.
Referenced by ilLMPresentationGUI\getTracker().
Here is the caller graph for this function:
|
static |
Get instance.
return
Definition at line 93 of file class.ilLMTracker.php.
References $ilUser.
Referenced by ilLPStatusQuestions\_getCompleted(), and ilLPStatusQuestions\determineStatus().
Here is the caller graph for this function:| ilLMTracker::hasPredIncorrectAnswers | ( | $a_obj_id, | |
$a_ignore_unlock = false |
|||
| ) |
Has predecessing incorrect answers.
| int | $a_obj_id |
Definition at line 571 of file class.ilLMTracker.php.
References $ret, and loadLMTrackingData().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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.
Referenced by trackAccess().
Here is the caller graph for this function:
|
protected |
Track page and chapter access.
Definition at line 179 of file class.ilLMTracker.php.
References $ilDB, $res, $row, $time_diff, ilObjUserTracking\_getValidTimeSpan(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by trackAccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().