19 declare(strict_types=0);
30 $members = self::getMembers($a_obj_id);
52 $users = $users + $all;
62 $users = array_intersect(self::getMembers($a_obj_id), $users);
90 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
91 switch ($this->ilObjDataCache->lookupType($a_obj_id)) {
95 $status = self::LP_STATUS_IN_PROGRESS_NUM;
101 if ($ex_stat ==
"passed") {
102 $status = self::LP_STATUS_COMPLETED_NUM;
104 if ($ex_stat ==
"failed") {
105 $status = self::LP_STATUS_FAILED_NUM;
125 ?array $a_user_ids =
null 128 $a_user_ids = self::getMembers($a_obj_id);
133 return self::_lookupStatusForObject(
135 self::LP_STATUS_COMPLETED_NUM,
145 ?array $a_user_ids =
null 148 $a_user_ids = self::getMembers($a_obj_id);
153 return self::_lookupStatusForObject(
155 self::LP_STATUS_FAILED_NUM,
165 ?array $a_user_ids =
null 168 $a_user_ids = self::getMembers($a_obj_id);
173 return self::_lookupStatusForObject(
175 self::LP_STATUS_IN_PROGRESS_NUM,
static _hasReturned(int $a_obj_id, int $a_user_id)
Has user returned anything in any assignment?
determineStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null)
Determine status.
static _lookupCompletedForObject(int $a_obj_id, ?array $a_user_ids=null)
Get completed users for object.
static _getCompleted(int $a_obj_id)
Static function to read the users who have the status 'completed'.
static hasAccessed(int $a_obj_id, int $a_usr_id)
Has accessed.
static _getPassedUsers(int $a_obj_id)
Get all users that passed the exercise.
static _getInProgress(int $a_obj_id)
Static function to read users who have the status 'in_progress'.
static getMembers(int $a_obj_id)
Get members for object.
static _getReturned(int $a_obj_id)
Get returned status for all members (if they have anything returned for any assignment) ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static lookupUsersInProgress(int $a_obj_id)
static _getInProgress(int $a_obj_id)
static _lookupInProgressForObject(int $a_obj_id, ?array $a_user_ids=null)
Get in progress users for object.
static _getFailed(int $a_obj_id)
Static function to read the users who have the status 'completed'.
static _getFailedUsers(int $a_obj_id)
Get all users that failed the exercise.
static _lookupStatus(int $a_obj_id, int $a_user_id)
Lookup current status (notgraded|passed|failed)
static _getNotAttempted(int $a_obj_id)
static _getCompleted(int $a_obj_id)
ilObjectDataCache $ilObjDataCache
static _getFailed(int $a_obj_id)
static _getMembers(int $a_obj_id)
static _lookupFailedForObject(int $a_obj_id, ?array $a_user_ids=null)
Get failed users for object.