3 require_once
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
4 require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembersStorageDB.php';
22 if (self::$members_storage === null) {
23 self::$members_storage = self::getMembersStorage();
26 $members = $iass->loadMembers($iass);
28 if ($members->userAllreadyMember($usr)) {
29 $member = self::$members_storage->loadMember($iass, $usr);
30 if ($member->finalized()) {
31 return $member->LPStatus();
47 if (self::$members_storage === null) {
48 self::$members_storage = self::getMembersStorage();
52 foreach ($members as $usr_id => $record) {
53 if ((
string) self::determineStatusOfMember($iass_id, $usr_id) === (
string) $status) {
62 require_once
'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentLP.php';
static getMembersHavingStatusIn($iass_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 _refreshStatus($a_obj_id, $a_users=null)
Set dirty.
static getMembersStorage()
Edit the record of a user, set LP.
static determineStatusOfMember($iass_id, $usr_id)
const LP_STATUS_NOT_ATTEMPTED_NUM
assessmentId()
Get the ilObjIndividualAssessment id corresponding to this membership.
id()
Get the user id corresponding to this membership.
static getInstance($a_obj_id)
static isActiveLP($a_object_id)
static updateLPStatusByIds($iass_id, array $usr_ids)