userreminderhandler.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * StatusNet - the distributed open-source microblogging tool
  4. *
  5. * Base handler for email reminders
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. * @category Email
  21. * @package StatusNet
  22. * @author Zach Copley <zach@status.net>
  23. * @copyright 2011 StatusNet, Inc.
  24. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  25. * @link http://status.net/
  26. */
  27. if (!defined('STATUSNET')) {
  28. exit(1);
  29. }
  30. /**
  31. * Handler for email reminder queue items
  32. *
  33. * @category Email
  34. * @package StatusNet
  35. * @author Zach Copley <zach@status.net>
  36. * @copyright 2011 StatusNet, Inc.
  37. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  38. * @link http://status.net/
  39. */
  40. class UserReminderHandler extends QueueHandler {
  41. /**
  42. * Send the next email reminder to the confirm address
  43. *
  44. * @param Confirm_address $confirm the confirmation email/code
  45. * @return boolean true on success, false on failure
  46. */
  47. function handle($confirm) : bool {
  48. return $this->sendNextReminder($confirm);
  49. }
  50. /**
  51. * Send the next reminder if one needs sending.
  52. * Subclasses must override
  53. *
  54. * @param Confirm_address $confirm the confirmation email/code
  55. */
  56. function sendNextReminder($confirm)
  57. {
  58. }
  59. }