ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
TODO: import/export reminder data with the exercise/assignment. More...
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().
ilExAssignmentReminder::checkReminders | ( | ) |
CRON send reminders.
Definition at line 466 of file class.ilExAssignmentReminder.php.
References $DIC, $message, $rmd_type, $template_id, $tpl, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ilObject\_lookupTitle(), getReminders(), ilExAssignment\lookupTitle(), parseGradeReminders(), parsePeerReminders(), parseSubmissionReminders(), sentReminderPlaceholders(), and updateRemindersLastDate().
ilExAssignmentReminder::deleteReminders | ( | $a_ass_id | ) |
remove reminders from DB when the parent assignment is deleted.
$a_ass_id |
Definition at line 641 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().
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().
ilExAssignmentReminder::getReminderLastSend | ( | ) |
Definition at line 142 of file class.ilExAssignmentReminder.php.
References $rmd_last_send.
Referenced by save(), and update().
ilExAssignmentReminder::getReminderMailTemplate | ( | ) |
Definition at line 152 of file class.ilExAssignmentReminder.php.
References $rmd_tpl_id.
Referenced by save(), and update().
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().
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().
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().
ilExAssignmentReminder::getReminderType | ( | ) |
Definition at line 60 of file class.ilExAssignmentReminder.php.
References $rmd_type.
Referenced by ilExAssignmentEditorGUI\saveReminderData().
|
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().
ilExAssignmentReminder::parseGradeReminders | ( | $a_reminders | ) |
Definition at line 369 of file class.ilExAssignmentReminder.php.
References $users, ilObject\_getAllReferences(), ilNotification\getNotificationsForObject(), ilExerciseManagementGUI\GRADE_NOT_GRADED, and ilNotification\TYPE_EXERCISE_SUBMISSION.
Referenced by checkReminders().
ilExAssignmentReminder::parsePeerReminders | ( | $a_reminders | ) |
Definition at line 430 of file class.ilExAssignmentReminder.php.
References $state, ilObject\_getAllReferences(), ilExcAssMemberState\getInstanceByIds(), and ilExPeerReview\lookupGiversWithPendingFeedback().
Referenced by checkReminders().
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, $state, ilObject\_getAllReferences(), and ilExcAssMemberState\getInstanceByIds().
Referenced by checkReminders().
ilExAssignmentReminder::read | ( | ) |
Definition at line 193 of file class.ilExAssignmentReminder.php.
References initFromDB().
Referenced by __construct().
ilExAssignmentReminder::save | ( | ) |
Definition at line 157 of file class.ilExAssignmentReminder.php.
References getReminderEnd(), getReminderFrequency(), getReminderLastSend(), getReminderMailTemplate(), getReminderStart(), and getReminderStatus().
|
protected |
Definition at line 589 of file class.ilExAssignmentReminder.php.
References $context, $user, exit, ilLoggerFactory\getLogger(), ilMailTemplateContextService\getTemplateContextById(), ilExcMailTemplateSubmitReminderContext\ID, ilExcMailTemplateGradeReminderContext\ID, and ilExcMailTemplatePeerReminderContext\ID.
Referenced by checkReminders().
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().
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().
ilExAssignmentReminder::setReminderLastSend | ( | $a_timestamp | ) |
Definition at line 137 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB().
ilExAssignmentReminder::setReminderMailTemplate | ( | $a_tpl_id | ) |
Definition at line 147 of file class.ilExAssignmentReminder.php.
Referenced by initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
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().
ilExAssignmentReminder::setReminderStatus | ( | $a_status | ) |
Set reminder for users without submission.
$a_status |
Definition at line 69 of file class.ilExAssignmentReminder.php.
Referenced by ilExAssignment\cloneAssignmentsOfExercise(), initFromDB(), and ilExAssignmentEditorGUI\saveReminderData().
ilExAssignmentReminder::update | ( | ) |
Definition at line 172 of file class.ilExAssignmentReminder.php.
References getReminderEnd(), getReminderFrequency(), getReminderLastSend(), getReminderMailTemplate(), getReminderStart(), and getReminderStatus().
|
protected |
Update reminders last_send value with the current timestamp.
$a_reminders |
Definition at line 622 of file class.ilExAssignmentReminder.php.
Referenced by checkReminders().
|
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 checkReminders(), and getReminderType().
|
protected |
Definition at line 21 of file class.ilExAssignmentReminder.php.
const ilExAssignmentReminder::FEEDBACK_REMINDER = "peer" |
Definition at line 18 of file class.ilExAssignmentReminder.php.
Referenced by ilExAssignment\cloneAssignmentsOfExercise(), ilExAssignmentEditorGUI\getPeerReviewValues(), ilExAssignmentEditorGUI\importPeerReviewFormToAssignmentReminders(), ilExAssignmentEditorGUI\initAssignmentForm(), and ilExAssignmentEditorGUI\initPeerReviewForm().
const ilExAssignmentReminder::GRADE_REMINDER = "grade" |
const ilExAssignmentReminder::SUBMIT_REMINDER = "submit" |