| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilLMTracker:Public Member Functions | |
| trackAccess (int $a_page_id, int $user_id) | |
| Track access to lm page.  More... | |
| trackLastPageAccess (int $usr_id, int $lm_id, int $obj_id) | |
| Track last accessed page for a learning module.  More... | |
| setCurrentPage (int $a_val) | |
| getCurrentPage () | |
| getAllQuestionsCorrect () | |
| Have all questions been answered correctly (and questions exist)?  More... | |
| getIconForLMObject (array $a_node, int $a_highlighted_node=0) | |
| hasPredIncorrectAnswers (int $a_obj_id, bool $a_ignore_unlock=false) | |
| Has predecessing incorrect answers.  More... | |
| getBlockedUsersInformation () | |
Static Public Member Functions | |
| static | getInstance (int $a_ref_id, int $a_user_id=0) | 
| static | getInstanceByObjId (int $a_obj_id, int $a_user_id=0) | 
| static | _isNodeVisible (array $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 array | $instances = array() | 
| static array | $instancesbyobj = array() | 
Protected Member Functions | |
| trackPageAndChapterAccess (int $a_page_id) | |
| loadLMTrackingData () | |
| Load LM tracking data.  More... | |
| determineProgressStatus (int $a_obj_id, bool &$a_has_pred_incorrect_answers, bool &$a_has_pred_incorrect_not_unlocked_answers) | |
| Determine progress status of nodes.  More... | |
Protected Attributes | |
| int | $user_id | 
| ilDBInterface | $db | 
| ilLanguage | $lng | 
| Refinery | $refinery | 
| ilComponentRepository | $component_repository | 
| ilObjUser | $user | 
| int | $lm_ref_id | 
| int | $lm_obj_id | 
| ilLMTree | $lm_tree | 
| array | $lm_obj_ids = array() | 
| array | $tree_arr = array() | 
| array | $re_arr = array() | 
| bool | $loaded_for_node = false | 
| bool | $dirty = false | 
| array | $page_questions = array() | 
| array | $all_questions = array() | 
| array | $answer_status = array() | 
| bool | $has_incorrect_answers = false | 
| int | $current_page_id = 0 | 
Private Member Functions | |
| __construct (int $a_id, bool $a_by_obj_id=false, int $a_user_id=0) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Track access to ILIAS learning modules
Definition at line 26 of file class.ilLMTracker.php.
      
  | 
  private | 
Definition at line 57 of file class.ilLMTracker.php.
References $DIC, ilObject\_lookupObjId(), ilLMTree\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
 Here is the call graph for this function:
      
  | 
  static | 
Is node visible for the learner.
Definition at line 583 of file class.ilLMTracker.php.
References $lm_set, ilPageObject\_lookupActivationData(), ilPageObject\_lookupActive(), and ilUtil\now().
 Here is the call graph for this function:
      
  | 
  protected | 
Determine progress status of nodes.
| int | $a_obj_id | lm object id | 
Definition at line 381 of file class.ilLMTracker.php.
References $c, COMPLETED, CURRENT, FAILED, getCurrentPage(), IN_PROGRESS, NOT_ATTEMPTED, and ilArrayUtil\sortArray().
Referenced by loadLMTrackingData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilLMTracker::getAllQuestionsCorrect | ( | ) | 
Have all questions been answered correctly (and questions exist)?
Definition at line 367 of file class.ilLMTracker.php.
References loadLMTrackingData().
 Here is the call graph for this function:| ilLMTracker::getBlockedUsersInformation | ( | ) | 
Definition at line 536 of file class.ilLMTracker.php.
References $component_repository, $db, $ilDB, $lng, $q, $refinery, ilObjUser\_lookupName(), ilLMObject\_lookupTitle(), ilPageQuestionProcessor\getAnswerStatus(), and ilLMPageObject\queryQuestionsOfLearningModule().
 Here is the call graph for this function:| ilLMTracker::getCurrentPage | ( | ) | 
Definition at line 298 of file class.ilLMTracker.php.
References $current_page_id.
Referenced by determineProgressStatus(), and loadLMTrackingData().
 Here is the caller graph for this function:| ilLMTracker::getIconForLMObject | ( | array | $a_node, | 
| int | $a_highlighted_node = 0  | 
        ||
| ) | 
Definition at line 487 of file class.ilLMTracker.php.
References COMPLETED, FAILED, ilLPStatusIcons\getInstance(), ilLPStatusIcons\ICON_VARIANT_SHORT, IN_PROGRESS, and loadLMTrackingData().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 82 of file class.ilLMTracker.php.
References $DIC.
Referenced by ilLMBlockedUsersTableGUI\__construct().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 100 of file class.ilLMTracker.php.
References $DIC.
Referenced by ilLPStatusQuestions\_getCompleted(), and ilLPStatusQuestions\determineStatus().
 Here is the caller graph for this function:| ilLMTracker::hasPredIncorrectAnswers | ( | int | $a_obj_id, | 
| bool | $a_ignore_unlock = false  | 
        ||
| ) | 
Has predecessing incorrect answers.
Definition at line 516 of file class.ilLMTracker.php.
References loadLMTrackingData().
Referenced by ilLMPresentationGUI\filterNonAccessibleNode().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Load LM tracking data.
Loaded when needed.
Definition at line 306 of file class.ilLMTracker.php.
References $db, $ilDB, $q, 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 | ( | int | $a_val | ) | 
Definition at line 292 of file class.ilLMTracker.php.
| ilLMTracker::trackAccess | ( | int | $a_page_id, | 
| int | $user_id | ||
| ) | 
Track access to lm page.
Definition at line 125 of file class.ilLMTracker.php.
References ilChangeEvent\_recordReadEvent(), ilLearningProgress\_tracProgress(), ilLPStatusWrapper\_updateStatus(), ANONYMOUS_USER_ID, trackLastPageAccess(), and trackPageAndChapterAccess().
 Here is the call graph for this function:| ilLMTracker::trackLastPageAccess | ( | int | $usr_id, | 
| int | $lm_id, | ||
| int | $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 166 of file class.ilLMTracker.php.
References $db, ilUtil\now(), and ilDBInterface\replace().
Referenced by trackAccess().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 187 of file class.ilLMTracker.php.
References $db, $ilDB, $res, 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 49 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 50 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 38 of file class.ilLMTracker.php.
Referenced by getBlockedUsersInformation().
      
  | 
  protected | 
Definition at line 52 of file class.ilLMTracker.php.
Referenced by getCurrentPage().
      
  | 
  protected | 
Definition at line 35 of file class.ilLMTracker.php.
Referenced by getBlockedUsersInformation(), loadLMTrackingData(), trackLastPageAccess(), and trackPageAndChapterAccess().
      
  | 
  protected | 
Definition at line 47 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 51 of file class.ilLMTracker.php.
      
  | 
  static | 
Definition at line 54 of file class.ilLMTracker.php.
      
  | 
  static | 
Definition at line 55 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 41 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 43 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 40 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 42 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 36 of file class.ilLMTracker.php.
Referenced by getBlockedUsersInformation().
      
  | 
  protected | 
Definition at line 46 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 48 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 45 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 37 of file class.ilLMTracker.php.
Referenced by getBlockedUsersInformation().
      
  | 
  protected | 
Definition at line 44 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilLMTracker.php.
      
  | 
  protected | 
Definition at line 33 of file class.ilLMTracker.php.
| const ilLMTracker::COMPLETED = 2 | 
Definition at line 30 of file class.ilLMTracker.php.
Referenced by determineProgressStatus(), and getIconForLMObject().
| const ilLMTracker::CURRENT = 99 | 
Definition at line 32 of file class.ilLMTracker.php.
Referenced by determineProgressStatus().
| const ilLMTracker::FAILED = 3 | 
Definition at line 31 of file class.ilLMTracker.php.
Referenced by determineProgressStatus(), and getIconForLMObject().
| const ilLMTracker::IN_PROGRESS = 1 | 
Definition at line 29 of file class.ilLMTracker.php.
Referenced by determineProgressStatus(), and getIconForLMObject().
| const ilLMTracker::NOT_ATTEMPTED = 0 | 
Definition at line 28 of file class.ilLMTracker.php.
Referenced by determineProgressStatus().