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