ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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 487 of file class.ilExcAssMemberState.php.
References hasSubmissionStarted().
ilExcAssMemberState::exceededOfficialDeadline | ( | ) |
Definition at line 308 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 395 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, and getCalculatedDeadline().
Referenced by getCommonDeadlinePresentation(), getIndividualDeadline(), and ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getCommonDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 408 of file class.ilExcAssMemberState.php.
References getCommonDeadline(), and getTimePresentation().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getEffectiveDeadline | ( | ) |
Definition at line 418 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 373 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 385 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(), null, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExAssignmentInfo\__construct(), ilExSubmission\__construct(), ilCalendarScheduleFilterExercise\addCustomEvents(), ILIAS\Exercise\Assignment\PropertyAndActionBuilderUI\build(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilExSubmissionGUI\downloadFileObject(), ilExSubmissionGUI\downloadGlobalFeedbackFileObject(), ilExPeerReviewGUI\editPeerReviewItemObject(), ilAppointmentExerciseFileHandler\getFiles(), ilExSubmissionTeamGUI\getOverviewContent(), ilExPeerReviewGUI\getOverviewContent(), ilExAssignmentReminder\getReminders(), ilBlogExerciseGUI\getSubmitButton(), ilPortfolioExerciseGUI\getSubmitButton(), ilExerciseDerivedTaskProvider\getTasks(), ilExAssignmentReminder\parsePeerReminders(), and ilObjExerciseGUI\startAssignmentObject().
ilExcAssMemberState::getLastSubmissionOfRelativeDeadline | ( | ) |
Definition at line 248 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getLastSubmissionOfRelativeDeadlinePresentation().
ilExcAssMemberState::getLastSubmissionOfRelativeDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 298 of file class.ilExcAssMemberState.php.
References getLastSubmissionOfRelativeDeadline(), and getTimePresentation().
Referenced by getRelativeDeadlineStartLeadText().
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 269 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 285 of file class.ilExcAssMemberState.php.
References getOfficialDeadline(), and getTimePresentation().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getPeerReviewDeadline | ( | ) |
Definition at line 423 of file class.ilExcAssMemberState.php.
Referenced by getPeerReviewDeadlinePresentation(), getRemainingPeerReviewPresentation(), hasEnded(), and isPeerReviewAllowed().
ilExcAssMemberState::getPeerReviewDeadlinePresentation | ( | ) |
ilDateTimeException |
Definition at line 436 of file class.ilExcAssMemberState.php.
References getPeerReviewDeadline(), and getTimePresentation().
ilExcAssMemberState::getPeerReviewLeadText | ( | ) |
Definition at line 360 of file class.ilExcAssMemberState.php.
References $lng, getRemainingPeerReviewPresentation(), and ILIAS\Repository\lng().
ilExcAssMemberState::getRelativeDeadline | ( | ) |
Definition at line 240 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE.
Referenced by getRelativeDeadlinePresentation(), and ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getRelativeDeadlinePresentation | ( | ) |
Definition at line 256 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_RELATIVE, getRelativeDeadline(), and ILIAS\Repository\lng().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getRelativeDeadlineStartLeadText | ( | ) |
Definition at line 192 of file class.ilExcAssMemberState.php.
References getLastSubmissionOfRelativeDeadlinePresentation(), getRemainingTimePresentationOfLastSubmissionOfRelativeDeadline(), and ILIAS\Repository\lng().
ilExcAssMemberState::getRemainingPeerReviewPresentation | ( | ) |
Definition at line 338 of file class.ilExcAssMemberState.php.
References $lng, getPeerReviewDeadline(), IL_CAL_UNIX, ilLegacyFormElementsUtil\period2String(), and ilLanguage\txt().
Referenced by getPeerReviewLeadText().
ilExcAssMemberState::getRemainingTimeLeadText | ( | ) |
Definition at line 354 of file class.ilExcAssMemberState.php.
References $lng, getRemainingTimePresentation(), and ILIAS\Repository\lng().
ilExcAssMemberState::getRemainingTimePresentation | ( | ) |
Remaining time presentation (based on official deadline)
ilDateTimeException |
Definition at line 322 of file class.ilExcAssMemberState.php.
References $lng, getOfficialDeadline(), IL_CAL_UNIX, ilLegacyFormElementsUtil\period2String(), and ilLanguage\txt().
Referenced by getRemainingTimeLeadText(), and ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::getRemainingTimePresentationOfLastSubmissionOfRelativeDeadline | ( | ) |
Remaining time for last submission of relative deadline.
ilDateTimeException |
Definition at line 226 of file class.ilExcAssMemberState.php.
References $lng, IL_CAL_UNIX, ilLegacyFormElementsUtil\period2String(), and ilLanguage\txt().
Referenced by getRelativeDeadlineStartLeadText().
|
protected |
$a_timestamp |
ilDateTimeException |
Definition at line 478 of file class.ilExcAssMemberState.php.
References ilDatePresentation\formatDate(), and IL_CAL_UNIX.
Referenced by getCommonDeadlinePresentation(), getGeneralStartPresentation(), getIndividualDeadlinePresentation(), getLastSubmissionOfRelativeDeadlinePresentation(), getOfficialDeadlinePresentation(), and getPeerReviewDeadlinePresentation().
ilExcAssMemberState::hasEnded | ( | ) |
Check if assignment has ended for current user.
Definition at line 545 of file class.ilExcAssMemberState.php.
References $time, getPeerReviewDeadline(), and hasSubmissionEnded().
ilExcAssMemberState::hasGenerallyStarted | ( | ) |
Definition at line 167 of file class.ilExcAssMemberState.php.
Referenced by hasSubmissionStarted(), and isFuture().
ilExcAssMemberState::hasRequestedIndividualDeadline | ( | ) |
Definition at line 610 of file class.ilExcAssMemberState.php.
ilExcAssMemberState::hasSubmissionEnded | ( | ) |
Definition at line 530 of file class.ilExcAssMemberState.php.
References getEffectiveDeadline().
Referenced by hasEnded(), and isSubmissionAllowed().
ilExcAssMemberState::hasSubmissionEndedForAllUsers | ( | ) |
Definition at line 561 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 509 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE, ilExAssignment\DEADLINE_ABSOLUTE_INDIVIDUAL, ilExAssignment\DEADLINE_RELATIVE, getIndividualStart(), and hasGenerallyStarted().
Referenced by areInstructionsVisible(), ilExAssignmentInfo\getScheduleInfo(), and isSubmissionAllowed().
ilExcAssMemberState::inLateSubmissionPhase | ( | ) |
Definition at line 492 of file class.ilExcAssMemberState.php.
References getOfficialDeadline(), and isSubmissionAllowed().
Referenced by ilExAssignmentInfo\getScheduleInfo().
ilExcAssMemberState::isFuture | ( | ) |
Definition at line 555 of file class.ilExcAssMemberState.php.
References hasGenerallyStarted().
ilExcAssMemberState::isGlobalFeedbackFileAccessible | ( | ilExSubmission | $submission | ) |
Definition at line 584 of file class.ilExcAssMemberState.php.
References ilExAssignment\FEEDBACK_DATE_CUSTOM, ilExAssignment\FEEDBACK_DATE_DEADLINE, hasSubmissionEndedForAllUsers(), and ilExSubmission\hasSubmitted().
ilExcAssMemberState::isPeerReviewAllowed | ( | ) |
Definition at line 446 of file class.ilExcAssMemberState.php.
References $time, getPeerReviewDeadline(), and hasSubmissionEndedForAllUsers().
Referenced by isReceivedFeedbackAccessible().
ilExcAssMemberState::isReceivedFeedbackAccessible | ( | ) |
Definition at line 456 of file class.ilExcAssMemberState.php.
References ILIAS\Repository\int(), and isPeerReviewAllowed().
ilExcAssMemberState::isSubmissionAllowed | ( | ) |
Definition at line 575 of file class.ilExcAssMemberState.php.
References hasSubmissionEnded(), and hasSubmissionStarted().
Referenced by inLateSubmissionPhase().
ilExcAssMemberState::needsIndividualDeadline | ( | ) |
Definition at line 602 of file class.ilExcAssMemberState.php.
References ilExAssignment\DEADLINE_ABSOLUTE_INDIVIDUAL.
|
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(), getPeerReviewLeadText(), getRemainingPeerReviewPresentation(), getRemainingTimeLeadText(), getRemainingTimePresentation(), and getRemainingTimePresentationOfLastSubmissionOfRelativeDeadline().
|
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 hasEnded(), and isPeerReviewAllowed().
|
protected |
Definition at line 49 of file class.ilExcAssMemberState.php.