HTML
1 year ago
views
5 months ago
Apply.php
6 months ago
Cron.php
1 year ago
CronJob.php
8 months ago
CronJobs.php
2 months ago
Crypt.php
2 months ago
DownloadStats.php
5 months ago
Email.php
1 week ago
EmailCron.php
1 year ago
FileSystem.php
1 year ago
Installer.php
4 days ago
Messages.php
1 year ago
Query.php
5 months ago
Session.php
4 days ago
Settings.php
5 years ago
SimpleMath.php
5 years ago
TempStorage.php
4 days ago
Template.php
5 months ago
UI.php
6 months ago
Updater.php
4 years ago
UserAgent.php
2 years ago
__.php
2 months ago
__MailUI.php
3 years ago
EmailCron.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPDM\__; |
| 4 | |
| 5 | class EmailCron extends Cron { |
| 6 | |
| 7 | function __construct($payload) { |
| 8 | parent::__construct($payload); |
| 9 | } |
| 10 | |
| 11 | static function getTitle() { |
| 12 | return 'Email Cron'; |
| 13 | } |
| 14 | function dispatch() { |
| 15 | $template = __::valueof($this->payload, 'template'); |
| 16 | $params = __::valueof($this->payload, 'params'); |
| 17 | Email::send($template, $params); |
| 18 | } |
| 19 | } |
| 20 |