|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
TODO: import/export reminder data with the exercise/assignment. More...
Collaboration diagram for ilExAssignmentReminder:Public Member Functions | |
| __construct ($a_exc_id="", $a_ass_id="", $a_type="") | |
| getReminderType () | |
| setReminderStatus ($a_status) | |
| Set reminder for users without submission. More... | |
| getReminderStatus () | |
| Get the reminder status. More... | |
| setReminderStart ($a_num_days) | |
| Set num days before the deadline to start sending notifications. More... | |
| getReminderStart () | |
| Get num days before the deadline to start sending notifications. More... | |
| setReminderEnd ($a_date) | |
| Set the ending of the reminder. More... | |
| getReminderEnd () | |
| get the ending of the reminder More... | |
| setReminderFrequency ($a_num_days) | |
| Set frequency in days. More... | |
| getReminderFrequency () | |
| get submit reminder frequency in days. More... | |
| setReminderLastSend ($a_timestamp) | |
| getReminderLastSend () | |
| setReminderMailTemplate ($a_tpl_id) | |
| getReminderMailTemplate () | |
| save () | |
| update () | |
| read () | |
| getReminders ($a_type="") | |
| Get reminders available by date/frequence. More... | |
| parseSubmissionReminders ($a_reminders) | |
| Filter the reminders by object(crs,grp) by active status and if have members. More... | |
| parseGradeReminders ($a_reminders) | |
| parsePeerReminders ($a_reminders) | |
| checkReminders () | |
| CRON send reminders. More... | |
| deleteReminders ($a_ass_id) | |
| remove reminders from DB when the parent assignment is deleted. More... | |
Data Fields | |
| const | SUBMIT_REMINDER = "submit" |
| const | GRADE_REMINDER = "grade" |
| const | FEEDBACK_REMINDER = "peer" |
Protected Member Functions | |
| initFromDB (array $a_set) | |
| Import DB record. More... | |
| sentReminderPlaceholders ($a_message, $a_reminder_data, $a_reminder_type) | |
| updateRemindersLastDate ($a_reminders) | |
| Update reminders last_send value with the current timestamp. More... | |
Protected Attributes | |
| $db | |
| $tree | |
| $now | |
| $rmd_status | |
| $rmd_start | |
| $rmd_end | |
| $rmd_frequency | |
| $rmd_last_send | |
| $rmd_tpl_id | |
| $ass_id | |
| $exc_id | |
| $rmd_type | |
| $log | |
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 14 of file class.ilExAssignmentReminder.php.
| ilExAssignmentReminder::__construct | ( | $a_exc_id = "", |
|
$a_ass_id = "", |
|||
$a_type = "" |
|||
| ) |
Definition at line 38 of file class.ilExAssignmentReminder.php.
References $a_type, $DIC, ilLoggerFactory\getLogger(), and read().
Here is the call graph for this function:| ilExAssignmentReminder::checkReminders | ( | ) |
CRON send reminders.
Definition at line 469 of file class.ilExAssignmentReminder.php.
References getReminders(), parseGradeReminders(), parsePeerReminders(), and parseSubmissionReminders().
Here is the call graph for this function:| ilExAssignmentReminder::deleteReminders | ( | $a_ass_id | ) |
remove reminders from DB when the parent assignment is deleted.
| $a_ass_id |
Definition at line 642 of file class.ilExAssignmentReminder.php.
| ilExAssignmentReminder::getReminderEnd | ( | ) |
get the ending of the reminder
Definition at line 114 of file class.ilExAssignmentReminder.php.
References $rmd_end.
Referenced by save(), and update().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminderFrequency | ( | ) |
get submit reminder frequency in days.
Definition at line 132 of file class.ilExAssignmentReminder.php.
References $rmd_frequency.
Referenced by save(), and update().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminderLastSend | ( | ) |
Definition at line 142 of file class.ilExAssignmentReminder.php.
References $rmd_last_send.
Referenced by save(), and update().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminderMailTemplate | ( | ) |
Definition at line 152 of file class.ilExAssignmentReminder.php.
References $rmd_tpl_id.
Referenced by save(), and update().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminders | ( | $a_type = "" | ) |
Get reminders available by date/frequence.
| $a_type | string reminder type |
Definition at line 228 of file class.ilExAssignmentReminder.php.
References $a_type, $now, $query, and $result.
Referenced by checkReminders().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminderStart | ( | ) |
Get num days before the deadline to start sending notifications.
Definition at line 96 of file class.ilExAssignmentReminder.php.
References $rmd_start.
Referenced by save(), and update().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminderStatus | ( | ) |
Get the reminder status.
Definition at line 78 of file class.ilExAssignmentReminder.php.
References $rmd_status.
Referenced by save(), ilExAssignmentEditorGUI\saveReminderData(), and update().
Here is the caller graph for this function:| ilExAssignmentReminder::getReminderType | ( | ) |
Definition at line 60 of file class.ilExAssignmentReminder.php.
References $rmd_type.
Referenced by ilExAssignmentEditorGUI\saveReminderData().
Here is the caller graph for this function:
|
protected |
Import DB record.
| array | $a_set |
Definition at line 211 of file class.ilExAssignmentReminder.php.
References setReminderEnd(), setReminderFrequency(), setReminderLastSend(), setReminderMailTemplate(), setReminderStart(), and setReminderStatus().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentReminder::parseGradeReminders | ( | $a_reminders | ) |
Definition at line 369 of file class.ilExAssignmentReminder.php.
References ilObject\_getAllReferences(), ilNotification\getNotificationsForObject(), ilExerciseManagementGUI\GRADE_NOT_GRADED, and ilNotification\TYPE_EXERCISE_SUBMISSION.
Referenced by checkReminders().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentReminder::parsePeerReminders | ( | $a_reminders | ) |
Definition at line 428 of file class.ilExAssignmentReminder.php.
References ilObject\_getAllReferences(), ilExcAssMemberState\getInstanceByIds(), and ilExPeerReview\lookupGiversWithPendingFeedback().
Referenced by checkReminders().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentReminder::parseSubmissionReminders | ( | $a_reminders | ) |
Filter the reminders by object(crs,grp) by active status and if have members.
| $a_reminders |
Definition at line 294 of file class.ilExAssignmentReminder.php.
References $ass_id, $exc_id, ilObject\_getAllReferences(), and ilExcAssMemberState\getInstanceByIds().
Referenced by checkReminders().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentReminder::read | ( | ) |
Definition at line 193 of file class.ilExAssignmentReminder.php.
References initFromDB().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentReminder::save | ( | ) |
Definition at line 157 of file class.ilExAssignmentReminder.php.
References getReminderEnd(), getReminderFrequency(), getReminderLastSend(), getReminderMailTemplate(), getReminderStart(), and getReminderStatus().
Here is the call graph for this function:
|
protected |
Definition at line 590 of file class.ilExAssignmentReminder.php.
References $context, Vendor\Package\$e, exit, ilLoggerFactory\getLogger(), ilMailTemplateContextService\getTemplateContextById(), ilExcMailTemplateGradeReminderContext\ID, ilExcMailTemplatePeerReminderContext\ID, and ilExcMailTemplateSubmitReminderContext\ID.
Here is the call graph for this function:| ilExAssignmentReminder::setReminderEnd | ( | $a_date | ) |
Set the ending of the reminder.
| $a_date |
Definition at line 105 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
Here is the caller graph for this function:| ilExAssignmentReminder::setReminderFrequency | ( | $a_num_days | ) |
Set frequency in days.
| $a_num_days |
Definition at line 123 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
Here is the caller graph for this function:| ilExAssignmentReminder::setReminderLastSend | ( | $a_timestamp | ) |
Definition at line 137 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB().
Here is the caller graph for this function:| ilExAssignmentReminder::setReminderMailTemplate | ( | $a_tpl_id | ) |
Definition at line 147 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
Here is the caller graph for this function:| ilExAssignmentReminder::setReminderStart | ( | $a_num_days | ) |
Set num days before the deadline to start sending notifications.
| $a_num_days |
Definition at line 87 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
Here is the caller graph for this function:| ilExAssignmentReminder::setReminderStatus | ( | $a_status | ) |
Set reminder for users without submission.
| $a_status |
Definition at line 69 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
Here is the caller graph for this function:| ilExAssignmentReminder::update | ( | ) |
Definition at line 172 of file class.ilExAssignmentReminder.php.
References getReminderEnd(), getReminderFrequency(), getReminderLastSend(), getReminderMailTemplate(), getReminderStart(), and getReminderStatus().
Here is the call graph for this function:
|
protected |
Update reminders last_send value with the current timestamp.
| $a_reminders |
Definition at line 623 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 31 of file class.ilExAssignmentReminder.php.
Referenced by parseSubmissionReminders().
|
protected |
Definition at line 20 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 32 of file class.ilExAssignmentReminder.php.
Referenced by parseSubmissionReminders().
|
protected |
Definition at line 35 of file class.ilExAssignmentReminder.php.
|
protected |
Definition at line 22 of file class.ilExAssignmentReminder.php.
Referenced by getReminders().
|
protected |
Definition at line 26 of file class.ilExAssignmentReminder.php.
Referenced by getReminderEnd().
|
protected |
Definition at line 27 of file class.ilExAssignmentReminder.php.
Referenced by getReminderFrequency().
|
protected |
Definition at line 28 of file class.ilExAssignmentReminder.php.
Referenced by getReminderLastSend().
|
protected |
Definition at line 25 of file class.ilExAssignmentReminder.php.
Referenced by getReminderStart().
|
protected |
Definition at line 24 of file class.ilExAssignmentReminder.php.
Referenced by getReminderStatus().
|
protected |
Definition at line 29 of file class.ilExAssignmentReminder.php.
Referenced by getReminderMailTemplate().
|
protected |
Definition at line 33 of file class.ilExAssignmentReminder.php.
Referenced by getReminderType().
|
protected |
Definition at line 21 of file class.ilExAssignmentReminder.php.
| const ilExAssignmentReminder::FEEDBACK_REMINDER = "peer" |
| const ilExAssignmentReminder::GRADE_REMINDER = "grade" |
| const ilExAssignmentReminder::SUBMIT_REMINDER = "submit" |