|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 the value may be restricted by the last submission date for relative deadlines. More... | |
| getRelativeDeadline () | |
| Get relative deadline. More... | |
| getLastSubmissionOfRelativeDeadline () | |
| Get last submission for 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... | |
| getLastSubmissionOfRelativeDeadlinePresentation () | |
| Get last submission for relative deadlines. 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 33 of file class.ilExcAssMemberState.php.
|
protected |
ilExcAssMemberState constructor.
| int | $a_ass_id | assignment id |
| int | $a_user_id | user id |
Definition at line 70 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 472 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 313 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 the value may be restricted by the last submission date for relative deadlines.
Definition at line 203 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 377 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 391 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 405 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 155 of file class.ilExcAssMemberState.php.
Referenced by getGeneralStartPresentation().
Here is the caller graph for this function:| ilExcAssMemberState::getGeneralStartPresentation | ( | ) |
Get start presentation.
Definition at line 165 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 349 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 143 of file class.ilExcAssMemberState.php.
| ilExcAssMemberState::getIndividualDeadlinePresentation | ( | ) |
Get common deadline presentation.
Definition at line 363 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 178 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 133 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 100 of file class.ilExcAssMemberState.php.
References $DIC, $is_team, $lng, $member_id, ilExcIndividualDeadline\getInstance(), getInstance(), ilExAssignmentTeam\getInstanceByUserId(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExSubmission\__construct(), ilExAssignmentInfo\__construct(), ilCalendarScheduleFilterExercise\addCustomEvents(), ilExAssignmentGUI\addPublicSubmissions(), ilExAssignmentGUI\addSchedule(), ilExAssignmentGUI\addSubmission(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilExSubmissionGUI\downloadFileObject(), ilExSubmissionGUI\downloadGlobalFeedbackFileObject(), ilAppointmentExerciseFileHandler\getFiles(), ilExAssignmentGUI\getOverviewBody(), ilExPeerReviewGUI\getOverviewContent(), ilExSubmissionTeamGUI\getOverviewContent(), ilExAssignmentGUI\getOverviewHeader(), ilBlogExerciseGUI\getSubmitButton(), ilPortfolioExerciseGUI\getSubmitButton(), ilExerciseDerivedTaskProvider\getTasks(), ilExAssignmentReminder\parsePeerReminders(), ilExAssignmentReminder\parseSubmissionReminders(), and ilObjExerciseGUI\startAssignmentObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcAssMemberState::getLastSubmissionOfRelativeDeadline | ( | ) |
Get last submission for relative deadline.
Definition at line 236 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getLastSubmissionOfRelativeDeadlinePresentation().
Here is the caller graph for this function:| ilExcAssMemberState::getLastSubmissionOfRelativeDeadlinePresentation | ( | ) |
Get last submission for relative deadlines.
Definition at line 297 of file class.ilExcAssMemberState.php.
References getLastSubmissionOfRelativeDeadline(), and getTimePresentation().
Here is the call 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 265 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 283 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 415 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 429 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 223 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 250 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 328 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 458 of file class.ilExcAssMemberState.php.
References ilDatePresentation\formatDate(), and IL_CAL_UNIX.
Referenced by getCommonDeadlinePresentation(), getGeneralStartPresentation(), getIndividualDeadlinePresentation(), getLastSubmissionOfRelativeDeadlinePresentation(), 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 192 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 540 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 558 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 526 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 507 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 593 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 443 of file class.ilExcAssMemberState.php.
| ilExcAssMemberState::isSubmissionAllowed | ( | ) |
Is submission currently allowed.
return
Definition at line 580 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 38 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 48 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 63 of file class.ilExcAssMemberState.php.
Referenced by getInstanceByIds().
|
protected |
Definition at line 53 of file class.ilExcAssMemberState.php.
Referenced by getInstanceByIds().
|
protected |
Definition at line 58 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 43 of file class.ilExcAssMemberState.php.