diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
|---|---|---|
| committer | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
| commit | 4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch) | |
| tree | 5c07151ae61276d334e88f6309c30d439a85c12e /lib/cronjobs/send_mail_queue.class.php | |
| parent | da0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff) | |
| parent | 97a188592c679890a25c37ab78463add76a52ff7 (diff) | |
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'lib/cronjobs/send_mail_queue.class.php')
| -rw-r--r-- | lib/cronjobs/send_mail_queue.class.php | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/lib/cronjobs/send_mail_queue.class.php b/lib/cronjobs/send_mail_queue.class.php deleted file mode 100644 index 8f72918..0000000 --- a/lib/cronjobs/send_mail_queue.class.php +++ /dev/null @@ -1,70 +0,0 @@ -<?php -/** -* send_mail_queue.class.php -* -* @author Rasmus Fuhse <fuhse@data-quest.de>, Suchi & Berg GmbH <info@data-quest.de> -* @access public -* @since 3.0 -*/ - -/** - * Cronjob class to send the mailqueue each interval. - */ -class SendMailQueueJob extends CronJob -{ - - /** - * Returns the name of the cronjob. - * @return string : name of the cronjob - */ - public static function getName() - { - return _('Mailqueue senden'); - } - - /** - * Returns the description of the cronjob. - * @return string : description of the cronjob. - */ - public static function getDescription() - { - return _('Sendet alle Einträge in der Mailqueue bis zu 24 Stunden, nachdem sie hinzugefügt wurden.'); - } - - /** - * Sends all mails in the queue. - * @param integer $last_result : not evaluated for execution, so any integer - * will do. Usually it would be a unix-timestamp of last execution. But in - * this case we don't care at all. - * @param array $parameters : not needed here - */ - public function execute($last_result, $parameters = []) - { - $status_messages = MailQueueEntry::sendAll( - Config::get()->MAILQUEUE_SEND_LIMIT, - (bool)$parameters['verbose'] - ); - - //We output one status message per line: - echo implode("\n", $status_messages); - } - - /** - * Returns a list of available parameters for this cronjob. - * See the description in the CronJob class for a specification - * for the returned array. - * - * @return array A list of available parameters for this cronjob. - */ - public static function getParameters() - { - return [ - 'verbose' => [ - 'type' => 'boolean', - 'default' => false, - 'status' => 'optional', - 'description' => _('Sollen Ausgaben erzeugt werden? Diese sind später im Log des Cronjobs sichtbar.'), - ], - ]; - } -} |
