4include_once 
'Services/Tracking/classes/class.ilLPStatus.php';
 
   20        parent::__construct($a_obj_id);
 
   26        include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
   41        $query = 
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks " .
 
   42            "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
   43            "AND completed = '1' ";
 
   47            $usr_ids[] = 
$row->user_id;
 
   63        global $ilObjDataCache, 
$ilDB;
 
   66        switch ($ilObjDataCache->lookupType($a_obj_id)) {
 
   69                include_once(
"./Services/Tracking/classes/class.ilChangeEvent.php");
 
   74                    $set = 
$ilDB->query($q = 
"SELECT usr_id FROM ut_lp_marks " .
 
   75                        "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
   76                        "AND usr_id = " . 
$ilDB->quote($a_user_id, 
'integer') . 
" " .
 
   77                        "AND completed = '1' ");
 
   78                    if ($rec = 
$ilDB->fetchAssoc($set)) {
 
An exception for terminatinating execution or to throw for unit testing.
static lookupUsersInProgress($a_obj_id)
Lookup users in progress.
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
static _getCompleted($a_obj_id)
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.
static _getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
foreach($_POST as $key=> $value) $res