33include_once 
'Services/Tracking/classes/class.ilLPStatus.php';
 
   85        include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
   93            $users = array_intersect(self::getMembers($a_obj_id), (array) $users);
 
  107        $query = 
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks " .
 
  108            "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
  109            "AND completed = '1' ";
 
  113            $usr_ids[] = $row->user_id;
 
  118            $usr_ids = array_intersect(self::getMembers($a_obj_id), (array) $usr_ids);
 
  136        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
  140        switch ($ilObjDataCache->lookupType($a_obj_id)) {
 
  144                $set = 
$ilDB->query($q = 
"SELECT usr_id FROM ut_lp_marks " .
 
  145                    "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
  146                    "AND usr_id = " . 
$ilDB->quote($a_user_id, 
'integer') . 
" " .
 
  147                    "AND completed = '1' ");
 
  148                if ($rec = 
$ilDB->fetchAssoc($set)) {
 
  151                    include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
  170        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
  172        switch ($ilObjDataCache->lookupType($a_obj_id)) {
 
  175                include_once 
'./Services/Membership/classes/class.ilParticipants.php';
 
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 _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.
static _lookupCompletedForObject($a_obj_id, $a_user_ids=null)
Get completed users for object.
static _lookupInProgressForObject($a_obj_id, $a_user_ids=null)
Get in progress users for object.
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static getMembers($a_obj_id)
Get members for object.
__construct($a_obj_id)
Constructor.
static _getInProgress($a_obj_id)
get in progress
static _getNotAttempted($a_obj_id)
get not attempted
static _getCompleted($a_obj_id)
static _getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.
static _getInProgress($a_obj_id)
Static function to read users who have the status 'in_progress'.
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
static _lookupStatusForObject($a_obj_id, $a_status, $a_user_ids=null)
Get users with given status for object.
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
static getInstanceByObjId($a_obj_id)
Get instance by obj type.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res