ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | getInstanceByIds (int $a_ass_id, int $a_user_id=0) |
static | getInstance (ilExAssignment $a_ass, ilObjUser $a_user, ilExcIndividualDeadline $a_idl, int $a_time, ilLanguage $lng, ilExAssignmentTeam $a_team=null) |
Usually you should prefer to use getInstanceByIds. More... | |
Protected Member Functions | |
__construct (ilExAssignment $a_ass, ilObjUser $a_user, ilExcIndividualDeadline $a_idl, int $a_time, ilLanguage $lng, ilExAssignmentTeam $a_team=null) | |
getTimePresentation ($a_timestamp) | |
Protected Attributes | |
int | $ass_id |
int | $user_id |
ilExAssignment | $assignment |
int | $time |
ilLanguage | $lng |
int | $member_id |
either user id or team id, if this is a team assignment and the user is member of a team, in this case is_team is true More... | |
int | $team_id = 0 |
bool | $is_team = false |
ilExcIndividualDeadline | $idl |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handles everything about the state (current phase) of a user in an assignment using assignment, individual deadline, user and team information.
Definition at line 46 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 63 of file class.ilExcAssMemberState.php.
References $lng, ilExAssignment\getId(), ilObject\getId(), ILIAS\Repository\lng(), and ilExAssignment\TYPE_UPLOAD_TEAM.
ilExcAssMemberState::areInstructionsVisible | ( | ) |
Definition at line 387 of file class.ilExcAssMemberState.php.
References hasSubmissionStarted().
ilExcAssMemberState::exceededOfficialDeadline | ( | ) |
Definition at line 260 of file class.ilExcAssMemberState.php.
References getOfficialDeadline().
Referenced by ilExAssignmentInfo\getScheduleInfo().
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 177 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getCommonDeadline(), and getOfficialDeadline().
ilExcAssMemberState::getCommonDeadline | ( | ) |
Definition at line 312 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, and getCalculatedDeadline().
Referenced by getCommonDeadlinePresentation(), getIndividualDeadline(), and ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getCommonDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 325 of file class.ilExcAssMemberState.php.
References getCommonDeadline(), and getTimePresentation().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getEffectiveDeadline | ( | ) |
Definition at line 335 of file class.ilExcAssMemberState.php.
References getOfficialDeadline().
Referenced by hasSubmissionEnded(), and hasSubmissionEndedForAllUsers().
ilExcAssMemberState::getGeneralStart | ( | ) |
Definition at line 142 of file class.ilExcAssMemberState.php.
Referenced by getGeneralStartPresentation(), and ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getGeneralStartPresentation | ( | ) |
ilDateTimeException |
Definition at line 151 of file class.ilExcAssMemberState.php.
References getGeneralStart(), and getTimePresentation().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getIndividualDeadline | ( | ) |
Definition at line 290 of file class.ilExcAssMemberState.php.
References getCommonDeadline().
Referenced by getIndividualDeadlinePresentation().
ilExcAssMemberState::getIndividualDeadlineObject | ( | ) |
Definition at line 137 of file class.ilExcAssMemberState.php.
References $idl.
ilExcAssMemberState::getIndividualDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 302 of file class.ilExcAssMemberState.php.
References getIndividualDeadline(), and getTimePresentation().
ilExcAssMemberState::getIndividualStart | ( | ) |
Definition at line 159 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by hasSubmissionStarted().
|
static |
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 126 of file class.ilExcAssMemberState.php.
References $lng.
|
static |
Definition at line 93 of file class.ilExcAssMemberState.php.
References $DIC, ilExcIndividualDeadline\getInstance(), ilExAssignmentTeam\getInstanceByUserId(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExAssignmentInfo\__construct(), ilExSubmission\__construct(), ilCalendarScheduleFilterExercise\addCustomEvents(), ilExAssignmentGUI\addPublicSubmissions(), ilExAssignmentGUI\addSchedule(), ilExAssignmentGUI\addSubmission(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilExSubmissionGUI\downloadFileObject(), ilExSubmissionGUI\downloadGlobalFeedbackFileObject(), ilAppointmentExerciseFileHandler\getFiles(), ilExAssignmentGUI\getOverviewBody(), ilExSubmissionTeamGUI\getOverviewContent(), ilExPeerReviewGUI\getOverviewContent(), ilExAssignmentGUI\getOverviewHeader(), ilExAssignmentReminder\getReminders(), ilBlogExerciseGUI\getSubmitButton(), ilPortfolioExerciseGUI\getSubmitButton(), ilExerciseDerivedTaskProvider\getTasks(), ilExAssignmentReminder\parsePeerReminders(), and ilObjExerciseGUI\startAssignmentObject().
ilExcAssMemberState::getLastSubmissionOfRelativeDeadline | ( | ) |
Definition at line 200 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getLastSubmissionOfRelativeDeadlinePresentation().
ilExcAssMemberState::getLastSubmissionOfRelativeDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 250 of file class.ilExcAssMemberState.php.
References getLastSubmissionOfRelativeDeadline(), and getTimePresentation().
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 221 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, and getCalculatedDeadline().
Referenced by exceededOfficialDeadline(), getEffectiveDeadline(), getOfficialDeadlinePresentation(), getRemainingTimePresentation(), ilExAssignmentInfo\getScheduleInfo(), and inLateSubmissionPhase().
ilExcAssMemberState::getOfficialDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 237 of file class.ilExcAssMemberState.php.
References getOfficialDeadline(), and getTimePresentation().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getPeerReviewDeadline | ( | ) |
Definition at line 340 of file class.ilExcAssMemberState.php.
Referenced by getPeerReviewDeadlinePresentation(), and isPeerReviewAllowed().
ilExcAssMemberState::getPeerReviewDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 353 of file class.ilExcAssMemberState.php.
References getPeerReviewDeadline(), and getTimePresentation().
ilExcAssMemberState::getRelativeDeadline | ( | ) |
Definition at line 192 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getRelativeDeadlinePresentation(), and ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getRelativeDeadlinePresentation | ( | ) |
Definition at line 208 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE, getRelativeDeadline(), and ILIAS\Repository\lng().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getRemainingTimePresentation | ( | ) |
Remaining time presentation (based on official deadline)
ilDateTimeException |
Definition at line 274 of file class.ilExcAssMemberState.php.
References $lng, getOfficialDeadline(), IL_CAL_UNIX, ilLegacyFormElementsUtil\period2String(), and ilLanguage\txt().
Referenced by ilExAssignmentInfo\getScheduleInfo().
|
protected |
$a_timestamp |
ilDateTimeException |
Definition at line 378 of file class.ilExcAssMemberState.php.
References ilDatePresentation\formatDate(), and IL_CAL_UNIX.
Referenced by getCommonDeadlinePresentation(), getGeneralStartPresentation(), getIndividualDeadlinePresentation(), getLastSubmissionOfRelativeDeadlinePresentation(), getOfficialDeadlinePresentation(), and getPeerReviewDeadlinePresentation().
ilExcAssMemberState::hasGenerallyStarted | ( | ) |
Definition at line 167 of file class.ilExcAssMemberState.php.
Referenced by hasSubmissionStarted().
ilExcAssMemberState::hasSubmissionEnded | ( | ) |
Definition at line 419 of file class.ilExcAssMemberState.php.
References getEffectiveDeadline().
Referenced by isSubmissionAllowed().
ilExcAssMemberState::hasSubmissionEndedForAllUsers | ( | ) |
Definition at line 432 of file class.ilExcAssMemberState.php.
References getEffectiveDeadline().
Referenced by isGlobalFeedbackFileAccessible(), and isPeerReviewAllowed().
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 409 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, getIndividualStart(), and hasGenerallyStarted().
Referenced by areInstructionsVisible(), ilExAssignmentInfo\getScheduleInfo(), and isSubmissionAllowed().
ilExcAssMemberState::inLateSubmissionPhase | ( | ) |
Definition at line 392 of file class.ilExcAssMemberState.php.
References getOfficialDeadline(), and isSubmissionAllowed().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::isGlobalFeedbackFileAccessible | ( | ilExSubmission | $submission | ) |
Definition at line 455 of file class.ilExcAssMemberState.php.
References ilExAssignment\FEEDBACK_DATE_CUSTOM, ilExAssignment\FEEDBACK_DATE_DEADLINE, hasSubmissionEndedForAllUsers(), and ilExSubmission\hasSubmitted().
ilExcAssMemberState::isPeerReviewAllowed | ( | ) |
Definition at line 363 of file class.ilExcAssMemberState.php.
References $time, getPeerReviewDeadline(), and hasSubmissionEndedForAllUsers().
ilExcAssMemberState::isSubmissionAllowed | ( | ) |
Definition at line 446 of file class.ilExcAssMemberState.php.
References hasSubmissionEnded(), and hasSubmissionStarted().
Referenced by inLateSubmissionPhase().
|
protected |
Definition at line 48 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 50 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 61 of file class.ilExcAssMemberState.php.
Referenced by getIndividualDeadlineObject().
|
protected |
Definition at line 60 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 52 of file class.ilExcAssMemberState.php.
Referenced by __construct(), getInstance(), and getRemainingTimePresentation().
|
protected |
either user id or team id, if this is a team assignment and the user is member of a team, in this case is_team is true
Definition at line 58 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 59 of file class.ilExcAssMemberState.php.
|
protected |
Definition at line 51 of file class.ilExcAssMemberState.php.
Referenced by isPeerReviewAllowed().
|
protected |
Definition at line 49 of file class.ilExcAssMemberState.php.