3 * StatusNet - the distributed open-source microblogging tool
5 * Base handler for email reminders
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.
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.
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/>.
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/
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 {
44 * Send the next email reminder to the confirm address
46 * @param Confirm_address $confirm the confirmation email/code
47 * @return boolean true on success, false on failure
49 function handle($confirm) {
50 return $this->sendNextReminder($confirm);
54 * Send the next reminder if one needs sending.
55 * Subclasses must override
57 * @param Confirm_address $confirm the confirmation email/code
59 function sendNextReminder($confirm)