19 declare(strict_types=1);
32 foreach ($usr_ids as $usr_id) {
39 if (self::$members_storage ===
null) {
40 self::$members_storage = self::getMembersStorage($iass_id);
44 $members = $iass->loadMembers();
47 if ($members->userAllreadyMember($usr)) {
48 $member = self::$members_storage->loadMember($iass, $usr);
50 if ($member->finalized()) {
51 return $member->LPStatus();
53 in_array($member->LPStatus(), [
69 $dic = $iass->getObjectDIC($iass, $DIC);
70 return $dic[
'iass.member.storage'];
75 if (self::$members_storage ===
null) {
76 self::$members_storage = self::getMembersStorage($iass_id);
80 foreach ($members as $usr_id => $record) {
81 if (self::determineStatusOfMember($iass_id, $usr_id) === $status) {
For the purpose of streamlining the grading and learning-process status definition outside of tests...
const LP_STATUS_IN_PROGRESS_NUM
static updateLPStatusOfMember(ilIndividualAssessmentMember $member)
static determineStatusOfMember(int $iass_id, int $usr_id)
static isActiveLP(int $object_id)
static updateLPStatusByIds(int $iass_id, array $usr_ids)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getMembersHavingStatusIn(int $iass_id, int $status)
Edit the record of a user, set LP.
const LP_STATUS_NOT_ATTEMPTED_NUM
static ilIndividualAssessmentMembersStorageDB $members_storage
static getInstance(int $obj_id)
static getMembersStorage(int $iass_id)
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)