diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-04 08:51:49 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-04 08:51:49 +0000 |
commit | 23b0abb9742d3418484fe8d01609f6849d7960ce (patch) | |
tree | 917e2816d561036055769c1723382ab0de4f6431 /modules/notification/models | |
parent | b493a534f2966e23eb0244654e8929320721da8e (diff) |
Redefine the batch API to be very very simple. You call
batch::start() before starting a series of events, and batch::stop()
when you're done.
In batch mode, the notification module will store up pending
notifications. When the batch job is complete, it'll send a single
digested email to each user for all of her notifications.
Updated the scaffold and local_import to use this. Haven't modified
SimpleUploader yet.
Diffstat (limited to 'modules/notification/models')
-rw-r--r-- | modules/notification/models/pending_notification.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/notification/models/pending_notification.php b/modules/notification/models/pending_notification.php new file mode 100644 index 00000000..d3fb3cf8 --- /dev/null +++ b/modules/notification/models/pending_notification.php @@ -0,0 +1,21 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class Pending_Notification_Model extends ORM { +}
\ No newline at end of file |