|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Handles everything about the state (current phase) of a user in an assignment using assignment, individual deadline, user and team information. More...
Collaboration diagram for ilExcAssMemberState:Public Member Functions | |
| getIndividualDeadlineObject () | |
| Get individual deadline object. More... | |
| getGeneralStart () | |
| Get general start. More... | |
| getGeneralStartPresentation () | |
| Get start presentation. More... | |
| getIndividualStart () | |
| Get individual start. More... | |
| hasGenerallyStarted () | |
| Has started. More... | |
| getCalculatedDeadline () | |
| Calculated deadline is only given, if a relative deadline is given and the user started the assignment. More... | |
| getRelativeDeadline () | |
| Get relative deadline. More... | |
| getRelativeDeadlinePresentation () | |
| Get relative deadline presentation. More... | |
| getOfficialDeadline () | |
| Get official deadline (individual deadline, fixed deadline or calculated deadline (using relative deadline and starting ts)) More... | |
| getOfficialDeadlinePresentation () | |
| Get official deadline presentation. More... | |
| exceededOfficialDeadline () | |
| Check if official deadline exists and has ended. More... | |
| getRemainingTimePresentation () | |
| Remaining time presentation (based on official deadline) More... | |
| getIndividualDeadline () | |
| Get individual deadline. More... | |
| getIndividualDeadlinePresentation () | |
| Get common deadline presentation. More... | |
| getCommonDeadline () | |
| Get common deadline (no individual deadline or grace period included) More... | |
| getCommonDeadlinePresentation () | |
| Get common deadline presentation. More... | |
| getEffectiveDeadline () | |
| Get effective deadline (max of official deadline and grace end period) for the user. More... | |
| getPeerReviewDeadline () | |
| Get peer review deadline. More... | |
| getPeerReviewDeadlinePresentation () | |
| Get common deadline presentation. More... | |
| isPeerReviewAllowed () | |
| Is submission currently allowed. More... | |
| areInstructionsVisible () | |
| Instructions visible. More... | |
| inLateSubmissionPhase () | |
| Get late submission warning. More... | |
| hasSubmissionStarted () | |
| Check if the submission phase has started for the current user. More... | |
| hasSubmissionEnded () | |
| Check if the submission phase has ended for the current user. More... | |
| hasSubmissionEndedForAllUsers () | |
| Has submission ended for all users. More... | |
| isSubmissionAllowed () | |
| Is submission currently allowed. More... | |
| isGlobalFeedbackFileAccessible (ilExSubmission $submission) | |
| Is global feedback file accessible? More... | |
Static Public Member Functions | |
| static | getInstanceByIds ($a_ass_id, $a_user_id=0) |
| Get instance by IDs (recommended for consumer code) More... | |
| static | getInstance (ilExAssignment $a_ass, ilObjUser $a_user, ilExcIndividualDeadline $a_idl, $a_time, ilLanguage $lng, ilExAssignmentTeam $a_team=null) |
| Get instance by dependencies. More... | |
Protected Member Functions | |
| __construct (ilExAssignment $a_ass, ilObjUser $a_user, ilExcIndividualDeadline $a_idl, $a_time, ilLanguage $lng, ilExAssignmentTeam $a_team=null) | |
| ilExcAssMemberState constructor. More... | |
| getTimePresentation ($a_timestamp) | |
| Get common deadline presentation. More... | |
Protected Attributes | |
| $ass_id | |
| $user_id | |
| $assignment | |
| $member_id | |
| $team_id = 0 | |
| $is_team = false | |
Handles everything about the state (current phase) of a user in an assignment using assignment, individual deadline, user and team information.
Definition at line 32 of file class.ilExcAssMemberState.php.
|
protected |
ilExcAssMemberState constructor.
| int | $a_ass_id | assignment id |
| int | $a_user_id | user id |
Definition at line 69 of file class.ilExcAssMemberState.php.
References $lng, ilExAssignment\getId(), ilObject\getId(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Here is the call graph for this function:| ilExcAssMemberState::areInstructionsVisible | ( | ) |
Instructions visible.
Definition at line 439 of file class.ilExcAssMemberState.php.
References hasSubmissionStarted().
Here is the call graph for this function:| ilExcAssMemberState::exceededOfficialDeadline | ( | ) |
Check if official deadline exists and has ended.
Definition at line 280 of file class.ilExcAssMemberState.php.
References getOfficialDeadline().
Here is the call graph for this function:| ilExcAssMemberState::getCalculatedDeadline | ( | ) |
Calculated deadline is only given, if a relative deadline is given and the user started the assignment.
Definition at line 204 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getCommonDeadline(), and getOfficialDeadline().
Here is the caller graph for this function:| ilExcAssMemberState::getCommonDeadline | ( | ) |
Get common deadline (no individual deadline or grace period included)
Definition at line 344 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, and getCalculatedDeadline().
Referenced by getCommonDeadlinePresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::getCommonDeadlinePresentation | ( | ) |
Get common deadline presentation.
Definition at line 358 of file class.ilExcAssMemberState.php.
References getCommonDeadline(), and getTimePresentation().
Here is the call graph for this function:| ilExcAssMemberState::getEffectiveDeadline | ( | ) |
Get effective deadline (max of official deadline and grace end period) for the user.
Definition at line 372 of file class.ilExcAssMemberState.php.
References getOfficialDeadline().
Referenced by hasSubmissionEnded(), and hasSubmissionEndedForAllUsers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::getGeneralStart | ( | ) |
Get general start.
return
Definition at line 157 of file class.ilExcAssMemberState.php.
Referenced by getGeneralStartPresentation().
Here is the caller graph for this function:| ilExcAssMemberState::getGeneralStartPresentation | ( | ) |
Get start presentation.
Definition at line 167 of file class.ilExcAssMemberState.php.
References getGeneralStart(), and getTimePresentation().
Here is the call graph for this function:| ilExcAssMemberState::getIndividualDeadline | ( | ) |
Get individual deadline.
Definition at line 316 of file class.ilExcAssMemberState.php.
Referenced by getIndividualDeadlinePresentation().
Here is the caller graph for this function:| ilExcAssMemberState::getIndividualDeadlineObject | ( | ) |
Get individual deadline object.
Definition at line 145 of file class.ilExcAssMemberState.php.
| ilExcAssMemberState::getIndividualDeadlinePresentation | ( | ) |
Get common deadline presentation.
Definition at line 330 of file class.ilExcAssMemberState.php.
References getIndividualDeadline(), and getTimePresentation().
Here is the call graph for this function:| ilExcAssMemberState::getIndividualStart | ( | ) |
Get individual start.
Definition at line 180 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
|
static |
Get instance by dependencies.
Usually you should prefer to use getInstanceByIds. If you use getInstance you need to ensure consistency (e.g. deadline needs to match user)
Definition at line 135 of file class.ilExcAssMemberState.php.
References $lng.
Referenced by getInstanceByIds().
Here is the caller graph for this function:
|
static |
Get instance by IDs (recommended for consumer code)
| int | $a_ass_id | assignment id |
| int | $a_user_id | user id |
Definition at line 99 of file class.ilExcAssMemberState.php.
References $DIC, $is_team, $lng, $member_id, $user, ilExcIndividualDeadline\getInstance(), getInstance(), ilExAssignmentTeam\getInstanceByUserId(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExSubmission\__construct(), ilCalendarScheduleFilterExercise\addCustomEvents(), ilExAssignmentGUI\addInstructions(), ilExAssignmentGUI\addPublicSubmissions(), ilExAssignmentGUI\addSchedule(), ilExAssignmentGUI\addSubmission(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilExSubmissionGUI\downloadFileObject(), ilExSubmissionGUI\downloadGlobalFeedbackFileObject(), ilAppointmentExerciseFileHandler\getFiles(), ilExAssignmentGUI\getOverviewBody(), ilExPeerReviewGUI\getOverviewContent(), ilExSubmissionTeamGUI\getOverviewContent(), ilExAssignmentGUI\getOverviewHeader(), ilExAssignmentReminder\parsePeerReminders(), ilExAssignmentReminder\parseSubmissionReminders(), and ilObjExerciseGUI\startAssignmentObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::getOfficialDeadline | ( | ) |
Get official deadline (individual deadline, fixed deadline or calculated deadline (using relative deadline and starting ts))
Grace period is not taken into account here.
Definition at line 248 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, and getCalculatedDeadline().
Referenced by exceededOfficialDeadline(), getEffectiveDeadline(), getOfficialDeadlinePresentation(), getRemainingTimePresentation(), and inLateSubmissionPhase().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::getOfficialDeadlinePresentation | ( | ) |
Get official deadline presentation.
Definition at line 266 of file class.ilExcAssMemberState.php.
References getOfficialDeadline(), and getTimePresentation().
Here is the call graph for this function:| ilExcAssMemberState::getPeerReviewDeadline | ( | ) |
Get peer review deadline.
Definition at line 382 of file class.ilExcAssMemberState.php.
Referenced by getPeerReviewDeadlinePresentation().
Here is the caller graph for this function:| ilExcAssMemberState::getPeerReviewDeadlinePresentation | ( | ) |
Get common deadline presentation.
Definition at line 396 of file class.ilExcAssMemberState.php.
References getPeerReviewDeadline(), and getTimePresentation().
Here is the call graph for this function:| ilExcAssMemberState::getRelativeDeadline | ( | ) |
Get relative deadline.
Definition at line 220 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getRelativeDeadlinePresentation().
Here is the caller graph for this function:| ilExcAssMemberState::getRelativeDeadlinePresentation | ( | ) |
Get relative deadline presentation.
Definition at line 233 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE, and getRelativeDeadline().
Here is the call graph for this function:| ilExcAssMemberState::getRemainingTimePresentation | ( | ) |
Remaining time presentation (based on official deadline)
return string
Definition at line 295 of file class.ilExcAssMemberState.php.
References $lng, getOfficialDeadline(), IL_CAL_UNIX, and ilUtil\period2String().
Here is the call graph for this function:
|
protected |
Get common deadline presentation.
Definition at line 425 of file class.ilExcAssMemberState.php.
References ilDatePresentation\formatDate(), and IL_CAL_UNIX.
Referenced by getCommonDeadlinePresentation(), getGeneralStartPresentation(), getIndividualDeadlinePresentation(), getOfficialDeadlinePresentation(), and getPeerReviewDeadlinePresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::hasGenerallyStarted | ( | ) |
Has started.
Definition at line 194 of file class.ilExcAssMemberState.php.
Referenced by hasSubmissionStarted().
Here is the caller graph for this function:| ilExcAssMemberState::hasSubmissionEnded | ( | ) |
Check if the submission phase has ended for the current user.
Definition at line 507 of file class.ilExcAssMemberState.php.
References getEffectiveDeadline().
Referenced by isSubmissionAllowed().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::hasSubmissionEndedForAllUsers | ( | ) |
Has submission ended for all users.
return
Definition at line 525 of file class.ilExcAssMemberState.php.
References getEffectiveDeadline().
Referenced by isGlobalFeedbackFileAccessible().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::hasSubmissionStarted | ( | ) |
Check if the submission phase has started for the current user.
(if the assignment is generally started and for relative deadlines, if the user started the assignment)
Definition at line 493 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, and hasGenerallyStarted().
Referenced by areInstructionsVisible(), and isSubmissionAllowed().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::inLateSubmissionPhase | ( | ) |
Get late submission warning.
return In late submission phase
return
Definition at line 474 of file class.ilExcAssMemberState.php.
References getOfficialDeadline(), and isSubmissionAllowed().
Here is the call graph for this function:| ilExcAssMemberState::isGlobalFeedbackFileAccessible | ( | ilExSubmission | $submission | ) |
Is global feedback file accessible?
| ilExSubmission | $submission |
Definition at line 560 of file class.ilExcAssMemberState.php.
References ilExAssignment\FEEDBACK_DATE_CUSTOM, ilExAssignment\FEEDBACK_DATE_DEADLINE, hasSubmissionEndedForAllUsers(), and ilExSubmission\hasSubmitted().
Here is the call graph for this function:| ilExcAssMemberState::isPeerReviewAllowed | ( | ) |
Is submission currently allowed.
Definition at line 410 of file class.ilExcAssMemberState.php.
| ilExcAssMemberState::isSubmissionAllowed | ( | ) |
Is submission currently allowed.
return
Definition at line 547 of file class.ilExcAssMemberState.php.
References hasSubmissionEnded(), and hasSubmissionStarted().
Referenced by inLateSubmissionPhase().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 37 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 47 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 62 of file class.ilExcAssMemberState.php.
Referenced by getInstanceByIds().
|
protected |
Definition at line 52 of file class.ilExcAssMemberState.php.
Referenced by getInstanceByIds().
|
protected |
Definition at line 57 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 42 of file class.ilExcAssMemberState.php.