ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
withOnlyUsersByIds ($keep_users_ids) | |
Remove all users that do no exist in list of given ids. More... | |
withAccessHandling (ilOrgUnitPositionAndRBACAccessHandler $access_handler) | |
Get a collection like this, but only including users that are visible according to the supplied access handler. 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... | |
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 183 of file class.ilIndividualAssessmentMembers.php.
References ilObjUser\getFirstname(), ilObject\getId(), ilObjUser\getLastname(), and ilObjUser\getLogin().
Referenced by withAdditionalUser().
ilIndividualAssessmentMembers::count | ( | ) |
Countable Methods.
Definition at line 54 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTest\compareMembersUsrList(), ilIndividualAssessmentMembersTest\createUser(), and valid().
ilIndividualAssessmentMembers::current | ( | ) |
Iterator Methods.
Definition at line 62 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersTest\test_finalize_graded(), ilIndividualAssessmentMembersTest\test_finalize_nongraded(), ilIndividualAssessmentMembersTest\test_re_finalize(), and ilIndividualAssessmentMembersTest\test_re_grade().
ilIndividualAssessmentMembers::key | ( | ) |
Definition at line 67 of file class.ilIndividualAssessmentMembers.php.
ilIndividualAssessmentMembers::membersIds | ( | ) |
Get the ids of all the users being member in this iass.
Definition at line 267 of file class.ilIndividualAssessmentMembers.php.
Referenced by withAccessHandling(), and withOnlyUsersByIds().
ilIndividualAssessmentMembers::next | ( | ) |
Definition at line 72 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 105 of file class.ilIndividualAssessmentMembers.php.
References userAllreadyMemberByUsrId(), and userExists().
Referenced by withAdditionalRecord().
ilIndividualAssessmentMembers::referencedObject | ( | ) |
Get the Individual assessment object that is corresponding to this.
Definition at line 94 of file class.ilIndividualAssessmentMembers.php.
References $iass.
Referenced by updateStorageAndRBAC().
ilIndividualAssessmentMembers::rewind | ( | ) |
Definition at line 78 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 278 of file class.ilIndividualAssessmentMembers.php.
References $current, $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 139 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 128 of file class.ilIndividualAssessmentMembers.php.
Referenced by recordOK(), updateStorageAndRBAC(), and userAllreadyMember().
|
protected |
Definition at line 144 of file class.ilIndividualAssessmentMembers.php.
References ilObject\_exists().
Referenced by recordOK().
ilIndividualAssessmentMembers::valid | ( | ) |
Definition at line 84 of file class.ilIndividualAssessmentMembers.php.
References count().
ilIndividualAssessmentMembers::withAccessHandling | ( | ilOrgUnitPositionAndRBACAccessHandler | $access_handler | ) |
Get a collection like this, but only including users that are visible according to the supplied access handler.
ilOrgUnitPositionAndRBACAccessHandler | $access_handler |
Definition at line 249 of file class.ilIndividualAssessmentMembers.php.
References ilOrgUnitPositionAndRBACAccessHandler\filterUserIdsByRbacOrPositionOfCurrentUser(), membersIds(), and withOnlyUsersByIds().
ilIndividualAssessmentMembers::withAdditionalRecord | ( | array | $record | ) |
Clone this and add an additional record.
int|string|null[] | $record |
ilIndividualAssessmentException |
Definition at line 156 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 173 of file class.ilIndividualAssessmentMembers.php.
References buildNewRecordOfUser(), ilObject\getId(), and userAllreadyMember().
ilIndividualAssessmentMembers::withOnlyUsersByIds | ( | $keep_users_ids | ) |
Remove all users that do no exist in list of given ids.
int[] | $keep_users_ids |
Definition at line 230 of file class.ilIndividualAssessmentMembers.php.
References $id, and membersIds().
Referenced by withAccessHandling().
ilIndividualAssessmentMembers::withoutPresentUser | ( | ilObjUser | $usr | ) |
Clone this andremove record corresponding to user.
ilObjUser | $usr |
ilIndividualAssessmentException |
Definition at line 213 of file class.ilIndividualAssessmentMembers.php.
References ilObject\getId().
|
protected |
Definition at line 16 of file class.ilIndividualAssessmentMembers.php.
Referenced by __construct(), referencedObject(), ilIndividualAssessmentMembersTest\test_create_members(), ilIndividualAssessmentMembersTest\test_finalize_graded(), ilIndividualAssessmentMembersTest\test_finalize_nongraded(), ilIndividualAssessmentMembersTest\test_init_iass(), ilIndividualAssessmentMembersTest\test_load_member(), ilIndividualAssessmentMembersTest\test_load_members(), ilIndividualAssessmentMembersTest\test_re_finalize(), ilIndividualAssessmentMembersTest\test_re_grade(), ilIndividualAssessmentMembersTest\test_reload_member(), ilIndividualAssessmentMembersTest\test_remove_members(), and updateStorageAndRBAC().
|
protected |
Definition at line 14 of file class.ilIndividualAssessmentMembers.php.
|
protected |
Definition at line 15 of file class.ilIndividualAssessmentMembers.php.
const ilIndividualAssessmentMembers::FIELD_CHANGE_TIME = "change_time" |
Definition at line 29 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_CHANGER_FIRSTNAME = "changer_firstname" |
Definition at line 27 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_CHANGER_ID = "changer_id" |
Definition at line 26 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_CHANGER_LASTNAME = "changer_lastname" |
Definition at line 28 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_EVENTTIME = "event_time" |
Definition at line 36 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_EXAMINER_FIRSTNAME = 'examiner_firstname' |
Definition at line 24 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_EXAMINER_ID = 'examiner_id' |
Definition at line 23 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_EXAMINER_LASTNAME = 'examiner_lastname' |
Definition at line 25 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_FILE_NAME = "file_name" |
Definition at line 37 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), ilIndividualAssessmentMembersStorageDB\loadMembersQuery(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_FINALIZED = 'finalized' |
Definition at line 33 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_FIRSTNAME = 'firstname' |
Definition at line 18 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_INTERNAL_NOTE = 'internal_note' |
Definition at line 31 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_LASTNAME = 'lastname' |
Definition at line 19 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_LEARNING_PROGRESS = 'learning_progress' |
Definition at line 22 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_LOGIN = 'login' |
Definition at line 20 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\loadMembersQuery().
const ilIndividualAssessmentMembers::FIELD_NOTIFICATION_TS = 'notification_ts' |
Definition at line 34 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_NOTIFY = 'notify' |
Definition at line 32 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_PLACE = "place" |
Definition at line 35 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_RECORD = 'record' |
Definition at line 30 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersTest\compareMembersUsrList(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_USER_VIEW_FILE = "user_view_file" |
Definition at line 38 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMember\__construct(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\updateMember().
const ilIndividualAssessmentMembers::FIELD_USR_ID = 'usr_id' |
Definition at line 21 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), and ilIndividualAssessmentMembersStorageDB\removeMembersRecord().
const ilIndividualAssessmentMembers::LP_ASSESSMENT_NOT_COMPLETED = "not_completed" |
Definition at line 44 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilIndividualAssessmentMembersGUI\getActiveLabelForModeByFilter(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilIndividualAssessmentMembersGUI\getFilterValue(), ilIndividualAssessmentMembersGUI\getModeOptions(), ilIndividualAssessmentMembersTableGUI\getStatus(), and ilIndividualAssessmentMembersStorageDB\getWhereFromFilter().
const ilIndividualAssessmentMembers::LP_COMPLETED = ilLPStatus::LP_STATUS_COMPLETED_NUM |
Definition at line 42 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getCompleted(), ilObjIndividualAssessmentAccess\checkCondition(), ilLPStatusIndividualAssessment\determineStatus(), ilIndividualAssessmentLPInterface\determineStatusOfMember(), ilIndividualAssessmentMembersGUI\getActiveLabelForModeByFilter(), ilObjIndividualAssessmentGUI\getEntryForStatus(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilIndividualAssessmentMembersGUI\getFilterValue(), ilIndividualAssessmentMembersGUI\getModeOptions(), ilIndividualAssessmentMembersStorageDB\getWhereFromFilter(), 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 43 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getFailed(), ilObjIndividualAssessmentAccess\checkCondition(), ilLPStatusIndividualAssessment\determineStatus(), ilIndividualAssessmentLPInterface\determineStatusOfMember(), ilIndividualAssessmentMembersGUI\getActiveLabelForModeByFilter(), ilObjIndividualAssessmentGUI\getEntryForStatus(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilIndividualAssessmentMembersGUI\getFilterValue(), ilIndividualAssessmentMembersGUI\getModeOptions(), ilIndividualAssessmentMembersStorageDB\getWhereFromFilter(), ilIndividualAssessmentMemberGUI\initGradingForm(), ilIndividualAssessmentMember\LPStatusValid(), and ilIndividualAssessmentMember\mayBeFinalized().
const ilIndividualAssessmentMembers::LP_IN_PROGRESS = ilLPStatus::LP_STATUS_IN_PROGRESS_NUM |
Definition at line 41 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getInProgress(), ilLPStatusIndividualAssessment\determineStatus(), ilIndividualAssessmentMembersGUI\getActiveLabelForModeByFilter(), ilObjIndividualAssessmentGUI\getEntryForStatus(), ilIndividualAssessmentMembersTableGUI\getEntryForStatus(), ilIndividualAssessmentMembersGUI\getFilterValue(), ilIndividualAssessmentMembersGUI\getModeOptions(), ilIndividualAssessmentMembersTableGUI\getStatus(), ilIndividualAssessmentMembersStorageDB\getWhereFromFilter(), ilIndividualAssessmentMemberGUI\initGradingForm(), and ilIndividualAssessmentMember\LPStatusValid().
const ilIndividualAssessmentMembers::LP_NOT_ATTEMPTED = ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM |
Definition at line 40 of file class.ilIndividualAssessmentMembers.php.
Referenced by ilLPStatusIndividualAssessment\_getNotAttempted(), ilLPStatusIndividualAssessment\determineStatus(), and ilIndividualAssessmentMember\LPStatusValid().