4include_once 
'Services/Tracking/classes/class.ilLPStatus.php';
 
   28        include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
   45        $query = 
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks " .
 
   46            "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
   47            "AND completed = '1' ";
 
   51            $usr_ids[] = $row->user_id;
 
   69        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
   73        switch ($ilObjDataCache->lookupType($a_obj_id)) {
 
   77                include_once(
"./Services/Tracking/classes/class.ilChangeEvent.php");
 
   82                    $set = 
$ilDB->query($q = 
"SELECT usr_id FROM ut_lp_marks " .
 
   83                        "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
   84                        "AND usr_id = " . 
$ilDB->quote($a_user_id, 
'integer') . 
" " .
 
   85                        "AND completed = '1' ");
 
   86                    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
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res