Notify.php
[Pman.Core] / Notify.php
1 <?php
2 require_once 'MTrackWeb.php';
3
4 /**
5  * notification script runner
6  *
7  * This does not actualy send stuf out, it only starts the NotifySend/{id}
8  * which does the actuall notifcations.
9  *
10  * It manages a pool of notifiers.
11  * 
12  * 
13  */
14
15 class Pman_Core_Notify extends Pman
16 {
17     
18     function getAuth()
19     {
20         $ff = HTML_FlexyFramework::get();
21         if (!$ff->cli) {
22             die("access denied");
23         }
24         HTML_FlexyFramework::ensureSingle(__FILE__, $this);
25         return true;
26         
27     }
28     
29     var $pool = array();
30     
31     function get()    
32     {
33         //DB_DataObject::debugLevel(1);
34         date_default_timezone_set('UTC');
35         
36         
37         $w = DB_DataObject::factory('core_notify');
38          
39         
40          
41         /* For each watcher, compute the changes.
42          * Group changes by ticket, sending one email per ticket.
43          * Group tickets into batch updates if the only fields that changed are
44          * bulk update style (milestone, assignment etc.)
45          *
46          * For the wiki repo, group by file so that serial edits within the batch
47          * period show up as a single email.
48          */
49          
50     }
51 }