Esempio n. 1
0
/**
 * A cronjob to clean general internal activity notifications
 */
function cron_clean_internal_activity_notifications()
{
    safe_require('notification', 'internal');
    PluginNotificationInternal::clean_notifications(array('viewaccess', 'watchlist', 'institutionmessage'));
}
Esempio n. 2
0
 public static function clean_annotationfeedback_notifications()
 {
     safe_require('notification', 'internal');
     PluginNotificationInternal::clean_notifications(array('annotationfeedback'));
 }
Esempio n. 3
0
 public static function clean_forum_notifications()
 {
     safe_require('notification', 'internal');
     PluginNotificationInternal::clean_notifications(array('newpost'));
 }