ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_exc_id=0, int $a_ass_id=0, string $a_type="") | |
getReminderType () | |
setReminderStatus (?bool $a_status) | |
Set reminder for users without submission. More... | |
getReminderStatus () | |
setReminderStart (int $a_num_days) | |
getReminderStart () | |
setReminderEnd (int $a_date) | |
getReminderEnd () | |
setReminderFrequency (int $a_num_days) | |
getReminderFrequency () | |
setReminderLastSend (int $a_timestamp) | |
getReminderLastSend () | |
setReminderMailTemplate (int $a_tpl_id) | |
getReminderMailTemplate () | |
save () | |
update () | |
read () | |
getReminders (string $a_type="") | |
Get reminders available by date/frequence. More... | |
parseGradeReminders (array $a_reminders) | |
parsePeerReminders (array $a_reminders) | |
checkReminders () | |
deleteReminders (int $a_ass_id) | |
Data Fields | |
const | SUBMIT_REMINDER = "submit" |
const | GRADE_REMINDER = "grade" |
const | FEEDBACK_REMINDER = "peer" |
Protected Member Functions | |
initFromDB (array $a_set) | |
sendReminders (array $reminders) | |
sentReminderPlaceholders (string $a_message, array $a_reminder_data, string $a_reminder_type) | |
updateRemindersLastDate (array $a_reminders) | |
Protected Attributes | |
ilDBInterface | $db |
ilTree | $tree |
bool | $rmd_status = null |
int | $rmd_start = 0 |
int | $rmd_end = 0 |
int | $rmd_frequency = 0 |
int | $rmd_last_send = 0 |
int | $rmd_tpl_id = 0 |
int | $ass_id = 0 |
int | $exc_id = 0 |
string | $rmd_type = "" |
ilLogger | $log |
ilAccessHandler | $access |
Private Attributes | |
ilMailTemplatePlaceholderResolver | $placeholder_resolver |
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
TODO: import/export reminder data with the exercise/assignment. TODO: Delete reminders from exc_ass_reminders when the assignment is deleted.
Exercise Assignment Reminders
Definition at line 29 of file class.ilExAssignmentReminder.php.
ilExAssignmentReminder::__construct | ( | int | $a_exc_id = 0 , |
int | $a_ass_id = 0 , |
||
string | $a_type = "" |
||
) |
Definition at line 54 of file class.ilExAssignmentReminder.php.
References $DIC, ILIAS\Repository\access(), ilLoggerFactory\getLogger(), and read().
ilExAssignmentReminder::checkReminders | ( | ) |
ilExcUnknownAssignmentTypeException | |
Exception |
Definition at line 459 of file class.ilExAssignmentReminder.php.
References getReminders(), parseGradeReminders(), parsePeerReminders(), and sendReminders().
ilExAssignmentReminder::deleteReminders | ( | int | $a_ass_id | ) |
Definition at line 621 of file class.ilExAssignmentReminder.php.
ilExAssignmentReminder::getReminderEnd | ( | ) |
Definition at line 115 of file class.ilExAssignmentReminder.php.
References $rmd_end.
Referenced by save(), and update().
ilExAssignmentReminder::getReminderFrequency | ( | ) |
Definition at line 126 of file class.ilExAssignmentReminder.php.
References $rmd_frequency.
Referenced by save(), and update().
ilExAssignmentReminder::getReminderLastSend | ( | ) |
Definition at line 136 of file class.ilExAssignmentReminder.php.
References $rmd_last_send.
Referenced by save(), and update().
ilExAssignmentReminder::getReminderMailTemplate | ( | ) |
Definition at line 146 of file class.ilExAssignmentReminder.php.
References $rmd_tpl_id.
Referenced by save(), and update().
ilExAssignmentReminder::getReminders | ( | string | $a_type = "" | ) |
Get reminders available by date/frequence.
Exception |
Definition at line 220 of file class.ilExAssignmentReminder.php.
References ilObject\_getAllReferences(), ILIAS\Repository\access(), and ilExcAssMemberState\getInstanceByIds().
Referenced by checkReminders().
ilExAssignmentReminder::getReminderStart | ( | ) |
Definition at line 105 of file class.ilExAssignmentReminder.php.
References $rmd_start.
Referenced by save(), and update().
ilExAssignmentReminder::getReminderStatus | ( | ) |
Definition at line 94 of file class.ilExAssignmentReminder.php.
References $rmd_status.
Referenced by ilExAssignmentEditorGUI\getAssignmentValues(), save(), ilExAssignmentEditorGUI\saveReminderData(), and update().
ilExAssignmentReminder::getReminderType | ( | ) |
Definition at line 80 of file class.ilExAssignmentReminder.php.
References $rmd_type.
Referenced by ilExAssignmentEditorGUI\saveReminderData().
|
protected |
Definition at line 203 of file class.ilExAssignmentReminder.php.
References setReminderEnd(), setReminderFrequency(), setReminderLastSend(), setReminderMailTemplate(), setReminderStart(), and setReminderStatus().
Referenced by read().
ilExAssignmentReminder::parseGradeReminders | ( | array | $a_reminders | ) |
ilExcUnknownAssignmentTypeException |
Definition at line 363 of file class.ilExAssignmentReminder.php.
References $user_id, ilObject\_getAllReferences(), ILIAS\Repository\access(), ilNotification\getNotificationsForObject(), ilExerciseManagementGUI\GRADE_NOT_GRADED, and ilNotification\TYPE_EXERCISE_SUBMISSION.
Referenced by checkReminders().
ilExAssignmentReminder::parsePeerReminders | ( | array | $a_reminders | ) |
ilExcUnknownAssignmentTypeException |
Definition at line 416 of file class.ilExAssignmentReminder.php.
References ilObject\_getAllReferences(), ILIAS\Repository\access(), ilExcAssMemberState\getInstanceByIds(), and ilExPeerReview\lookupGiversWithPendingFeedback().
Referenced by checkReminders().
ilExAssignmentReminder::read | ( | ) |
Definition at line 187 of file class.ilExAssignmentReminder.php.
References initFromDB().
Referenced by __construct().
ilExAssignmentReminder::save | ( | ) |
Definition at line 151 of file class.ilExAssignmentReminder.php.
References getReminderEnd(), getReminderFrequency(), getReminderLastSend(), getReminderMailTemplate(), getReminderStart(), and getReminderStatus().
|
protected |
Definition at line 490 of file class.ilExAssignmentReminder.php.
References $DIC, $message, $rmd_type, ilLanguageFactory\_getLanguageOfUser(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ilObject\_lookupTitle(), ANONYMOUS_USER_ID, ilExAssignment\lookupTitle(), null, sentReminderPlaceholders(), and updateRemindersLastDate().
Referenced by checkReminders().
|
protected |
Definition at line 573 of file class.ilExAssignmentReminder.php.
References $context, Vendor\Package\$e, exit, FEEDBACK_REMINDER, ilLoggerFactory\getLogger(), ilMailTemplateContextService\getTemplateContextById(), GRADE_REMINDER, ilExcMailTemplateSubmitReminderContext\ID, ilExcMailTemplatePeerReminderContext\ID, ilExcMailTemplateGradeReminderContext\ID, and SUBMIT_REMINDER.
Referenced by sendReminders().
ilExAssignmentReminder::setReminderEnd | ( | int | $a_date | ) |
Definition at line 110 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
ilExAssignmentReminder::setReminderFrequency | ( | int | $a_num_days | ) |
Definition at line 121 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
ilExAssignmentReminder::setReminderLastSend | ( | int | $a_timestamp | ) |
Definition at line 131 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB().
ilExAssignmentReminder::setReminderMailTemplate | ( | int | $a_tpl_id | ) |
Definition at line 141 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
ilExAssignmentReminder::setReminderStart | ( | int | $a_num_days | ) |
Definition at line 100 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
ilExAssignmentReminder::setReminderStatus | ( | ?bool | $a_status | ) |
Set reminder for users without submission.
bool | $a_status | activated? |
Definition at line 89 of file class.ilExAssignmentReminder.php.
Referenced by ilExAssignment\cloneAssignmentsOfExercise(), initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
ilExAssignmentReminder::update | ( | ) |
Definition at line 166 of file class.ilExAssignmentReminder.php.
References getReminderEnd(), getReminderFrequency(), getReminderLastSend(), getReminderMailTemplate(), getReminderStart(), and getReminderStatus().
|
protected |
Definition at line 605 of file class.ilExAssignmentReminder.php.
Referenced by sendReminders().
|
protected |
Definition at line 50 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 45 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 35 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 46 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 49 of file class.ilExAssignmentReminder.php.
|
private |
Definition at line 51 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 40 of file class.ilExAssignmentReminder.php.
Referenced by getReminderEnd().
|
protected |
Definition at line 41 of file class.ilExAssignmentReminder.php.
Referenced by getReminderFrequency().
|
protected |
Definition at line 42 of file class.ilExAssignmentReminder.php.
Referenced by getReminderLastSend().
|
protected |
Definition at line 39 of file class.ilExAssignmentReminder.php.
Referenced by getReminderStart().
|
protected |
Definition at line 38 of file class.ilExAssignmentReminder.php.
Referenced by getReminderStatus().
|
protected |
Definition at line 43 of file class.ilExAssignmentReminder.php.
Referenced by getReminderMailTemplate().
|
protected |
Definition at line 47 of file class.ilExAssignmentReminder.php.
Referenced by getReminderType(), and sendReminders().
|
protected |
Definition at line 36 of file class.ilExAssignmentReminder.php.
const ilExAssignmentReminder::FEEDBACK_REMINDER = "peer" |
Definition at line 33 of file class.ilExAssignmentReminder.php.
Referenced by ilExAssignmentEditorGUI\addMailTemplatesRadio(), ilExAssignment\cloneAssignmentsOfExercise(), ilExAssignmentEditorGUI\getPeerReviewValues(), ilExAssignmentEditorGUI\importPeerReviewFormToAssignmentReminders(), ilExAssignmentEditorGUI\initPeerReviewForm(), and sentReminderPlaceholders().
const ilExAssignmentReminder::GRADE_REMINDER = "grade" |
Definition at line 32 of file class.ilExAssignmentReminder.php.
Referenced by ilExAssignmentEditorGUI\addMailTemplatesRadio(), ilExAssignment\cloneAssignmentsOfExercise(), ilExAssignmentEditorGUI\getAssignmentValues(), ilExAssignmentEditorGUI\importFormToAssignmentReminders(), ilExAssignmentEditorGUI\initAssignmentForm(), and sentReminderPlaceholders().
const ilExAssignmentReminder::SUBMIT_REMINDER = "submit" |
Definition at line 31 of file class.ilExAssignmentReminder.php.
Referenced by ilExAssignmentEditorGUI\addMailTemplatesRadio(), ilExAssignment\cloneAssignmentsOfExercise(), ilExAssignmentEditorGUI\getAssignmentValues(), ilExAssignmentEditorGUI\importFormToAssignmentReminders(), ilExAssignmentEditorGUI\initAssignmentForm(), and sentReminderPlaceholders().