ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Member administration related logic, add and remove members, get the list of all members, etc. More...
Public Member Functions | |
__construct (ilObjIndividualAssessment $iass) | |
count () | |
Countable Methods. More... | |
current () | |
Iterator Methods. More... | |
key () | |
next () | |
rewind () | |
valid () | |
referencedObject () | |
Get the Individual assessment object that is corresponding to this. More... | |
recordOK (array $record) | |
Check the validity of a record before adding it to this. More... | |
userAllreadyMemberByUsrId ($usr_id) | |
Check if a user with user_id is member of this. More... | |
userAllreadyMember (ilObjUser $usr) | |
Check if a user is member of this. More... | |
withAdditionalRecord (array $record) | |
Clone this and add an additional record. More... | |
withAdditionalUser (ilObjUser $usr) | |
Clone this and add an additional record created for user. More... | |
withoutPresentUser (ilObjUser $usr) | |
Clone this andremove record corresponding to user. More... | |
membersIds () | |
Get the ids of all the users being member in this iass. More... | |
updateStorageAndRBAC (ilIndividualAssessmentMembersStorage $storage, IndividualAssessmentAccessHandler $access_handler) | |
Store the data to a persistent medium. More... | |
Data Fields | |
const | FIELD_FIRSTNAME = 'firstname' |
const | FIELD_LASTNAME = 'lastname' |
const | FIELD_LOGIN = 'login' |
const | FIELD_USR_ID = 'usr_id' |
const | FIELD_LEARNING_PROGRESS = 'learning_progress' |
const | FIELD_EXAMINER_ID = 'examiner_id' |
const | FIELD_EXAMINER_FIRSTNAME = 'examiner_firstname' |
const | FIELD_EXAMINER_LASTNAME = 'examiner_lastname' |
const | FIELD_RECORD = 'record' |
const | FIELD_INTERNAL_NOTE = 'internal_note' |
const | FIELD_NOTIFY = 'notify' |
const | FIELD_FINALIZED = 'finalized' |
const | FIELD_NOTIFICATION_TS = 'notification_ts' |
const | LP_NOT_ATTEMPTED = ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM |
const | LP_IN_PROGRESS = ilLPStatus::LP_STATUS_IN_PROGRESS_NUM |
const | LP_COMPLETED = ilLPStatus::LP_STATUS_COMPLETED_NUM |
const | LP_FAILED = ilLPStatus::LP_STATUS_FAILED_NUM |
Protected Member Functions | |
userExists ($usr_id) | |
buildNewRecordOfUser (ilObjUser $usr) | |
Protected Attributes | |
$member_records = array() | |
$position = 0 | |
$iass | |
Member administration related logic, add and remove members, get the list of all members, etc.
Definition at line 12 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::__construct | ( | ilObjIndividualAssessment | $iass | ) |
|
protected |
Definition at line 157 of file class.ilIndividualAssessmentMembers.php.
References array, ilObjUser\getFirstname(), ilObject\getId(), ilObjUser\getLastname(), and ilObjUser\getLogin().
Referenced by withAdditionalUser().
ilIndividualAssessmentMembers::count | ( | ) |
Countable Methods.
Definition at line 43 of file class.ilIndividualAssessmentMembers.php.
Referenced by valid().
ilIndividualAssessmentMembers::current | ( | ) |
Iterator Methods.
Definition at line 50 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::key | ( | ) |
Definition at line 54 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::membersIds | ( | ) |
Get the ids of all the users being member in this iass.
Definition at line 197 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::next | ( | ) |
Definition at line 58 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::recordOK | ( | array | $record | ) |
Check the validity of a record before adding it to this.
int|string|null[] | $record |
Definition at line 87 of file class.ilIndividualAssessmentMembers.php.
References array, userAllreadyMemberByUsrId(), and userExists().
Referenced by withAdditionalRecord().
ilIndividualAssessmentMembers::referencedObject | ( | ) |
Get the Individual assessment object that is corresponding to this.
Definition at line 77 of file class.ilIndividualAssessmentMembers.php.
References $iass.
Referenced by updateStorageAndRBAC().
ilIndividualAssessmentMembers::rewind | ( | ) |
Definition at line 63 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::updateStorageAndRBAC | ( | ilIndividualAssessmentMembersStorage | $storage, |
IndividualAssessmentAccessHandler | $access_handler | ||
) |
Store the data to a persistent medium.
ilIndividualAssessmentMembersStorage | $storage | |
IndividualAssessmentAccessHandler | $access_handler |
Definition at line 207 of file class.ilIndividualAssessmentMembers.php.
References $iass, IndividualAssessmentAccessHandler\assignUserToMemberRole(), IndividualAssessmentAccessHandler\deassignUserFromMemberRole(), ilIndividualAssessmentMembersStorage\insertMembersRecord(), ilIndividualAssessmentMembersStorage\loadMembers(), referencedObject(), ilIndividualAssessmentMembersStorage\removeMembersRecord(), and userAllreadyMemberByUsrId().
Referenced by ilObjIndividualAssessment\updateMembers().
ilIndividualAssessmentMembers::userAllreadyMember | ( | ilObjUser | $usr | ) |
Check if a user is member of this.
ilObjUser | $usr |
Definition at line 117 of file class.ilIndividualAssessmentMembers.php.
References ilObject\getId(), and userAllreadyMemberByUsrId().
Referenced by withAdditionalUser().
ilIndividualAssessmentMembers::userAllreadyMemberByUsrId | ( | $usr_id | ) |
Check if a user with user_id is member of this.
int | string | $usr_id |
Definition at line 107 of file class.ilIndividualAssessmentMembers.php.
Referenced by recordOK(), updateStorageAndRBAC(), and userAllreadyMember().
|
protected |
Definition at line 121 of file class.ilIndividualAssessmentMembers.php.
References ilObject\_exists().
Referenced by recordOK().
ilIndividualAssessmentMembers::valid | ( | ) |
Definition at line 68 of file class.ilIndividualAssessmentMembers.php.
References count().
ilIndividualAssessmentMembers::withAdditionalRecord | ( | array | $record | ) |
Clone this and add an additional record.
int|string|null[] | $record |
ilIndividualAssessmentException |
Definition at line 132 of file class.ilIndividualAssessmentMembers.php.
References recordOK().
ilIndividualAssessmentMembers::withAdditionalUser | ( | ilObjUser | $usr | ) |
Clone this and add an additional record created for user.
ilObjUser | $usr |
ilIndividualAssessmentException |
Definition at line 148 of file class.ilIndividualAssessmentMembers.php.
References buildNewRecordOfUser(), ilObject\getId(), and userAllreadyMember().
ilIndividualAssessmentMembers::withoutPresentUser | ( | ilObjUser | $usr | ) |
Clone this andremove record corresponding to user.
ilObjUser | $usr |
ilIndividualAssessmentException |
Definition at line 181 of file class.ilIndividualAssessmentMembers.php.
References ilObject\getId().
|
protected |
Definition at line 15 of file class.ilIndividualAssessmentMembers.php.
Referenced by __construct(), referencedObject(), and updateStorageAndRBAC().
|
protected |
Definition at line 13 of file class.ilIndividualAssessmentMembers.php.
|
protected |
Definition at line 14 of file class.ilIndividualAssessmentMembers.php.
const ilIndividualAssessmentMembers::FIELD_EXAMINER_FIRSTNAME = 'examiner_firstname' |
Definition at line 23 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTableGUI\fillRow().
const ilIndividualAssessmentMembers::FIELD_EXAMINER_ID = 'examiner_id' |
Definition at line 22 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersTableGUI\fillRow(), ilIndividualAssessmentMembersTableGUI\setWasEditedByOtherUser(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_EXAMINER_LASTNAME = 'examiner_lastname' |
Definition at line 24 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTableGUI\fillRow(), and ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_FINALIZED = 'finalized' |
Definition at line 28 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersTableGUI\fillRow(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_FIRSTNAME = 'firstname' |
Definition at line 17 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTableGUI\fillRow(), and ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_INTERNAL_NOTE = 'internal_note' |
Definition at line 26 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_LASTNAME = 'lastname' |
Definition at line 18 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTableGUI\fillRow(), and ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_LEARNING_PROGRESS = 'learning_progress' |
const ilIndividualAssessmentMembers::FIELD_LOGIN = 'login' |
Definition at line 19 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTableGUI\fillRow(), and ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_NOTIFICATION_TS = 'notification_ts' |
Definition at line 29 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_NOTIFY = 'notify' |
Definition at line 27 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_RECORD = 'record' |
Definition at line 25 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersTest\compareMembersUsrList(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_USR_ID = 'usr_id' |
Definition at line 20 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTableGUI\fillRow(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\removeMembersRecord().
const ilIndividualAssessmentMembers::LP_COMPLETED = ilLPStatus::LP_STATUS_COMPLETED_NUM |
Definition at line 33 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getCompleted(), ilObjIndividualAssessmentAccess\checkCondition(), ilLPStatusIndividualAssessment\determineStatus(), ilIndividualAssessmentLPInterface\determineStatusOfMember(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilObjIndividualAssessmentGUI\getEntryForStatus(), ilIndividualAssessmentMembersTableGUI\getImagetPathForStatus(), ilIndividualAssessmentMemberGUI\initGradingForm(), ilIndividualAssessmentMember\LPStatusValid(), ilIndividualAssessmentMember\mayBeFinalized(), ilIndividualAssessmentMember\maybeSendNotification(), ilIndividualAssessmentMembersTest\test_finalize_graded(), and ilIndividualAssessmentMembersTest\test_re_grade().
const ilIndividualAssessmentMembers::LP_FAILED = ilLPStatus::LP_STATUS_FAILED_NUM |
Definition at line 34 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getFailed(), ilObjIndividualAssessmentAccess\checkCondition(), ilLPStatusIndividualAssessment\determineStatus(), ilIndividualAssessmentLPInterface\determineStatusOfMember(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilObjIndividualAssessmentGUI\getEntryForStatus(), ilIndividualAssessmentMembersTableGUI\getImagetPathForStatus(), ilIndividualAssessmentMemberGUI\initGradingForm(), ilIndividualAssessmentMember\LPStatusValid(), and ilIndividualAssessmentMember\mayBeFinalized().
const ilIndividualAssessmentMembers::LP_IN_PROGRESS = ilLPStatus::LP_STATUS_IN_PROGRESS_NUM |
Definition at line 32 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getInProgress(), ilLPStatusIndividualAssessment\determineStatus(), ilIndividualAssessmentMembersTableGUI\fillRow(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilObjIndividualAssessmentGUI\getEntryForStatus(), ilIndividualAssessmentMembersTableGUI\getImagetPathForStatus(), ilIndividualAssessmentMemberGUI\initGradingForm(), and ilIndividualAssessmentMember\LPStatusValid().
const ilIndividualAssessmentMembers::LP_NOT_ATTEMPTED = ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM |
Definition at line 31 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getNotAttempted(), ilLPStatusIndividualAssessment\determineStatus(), and ilIndividualAssessmentMember\LPStatusValid().