Notify.php
authorAlan Knowles <alan@akbkhome.com>
Wed, 6 Apr 2011 08:19:07 +0000 (16:19 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 6 Apr 2011 08:19:07 +0000 (16:19 +0800)
Notify.php

index e69de29..f85f3be 100644 (file)
@@ -0,0 +1,51 @@
+<?php
+require_once 'MTrackWeb.php';
+
+/**
+ * notification script runner
+ *
+ * This does not actualy send stuf out, it only starts the NotifySend/{id}
+ * which does the actuall notifcations.
+ *
+ * It manages a pool of notifiers.
+ * 
+ * 
+ */
+
+class Pman_Core_Notify extends Pman
+{
+    
+    function getAuth()
+    {
+        $ff = HTML_FlexyFramework::get();
+        if (!$ff->cli) {
+            die("access denied");
+        }
+        HTML_FlexyFramework::ensureSingle(__FILE__, $this);
+        return true;
+        
+    }
+    
+    var $pool = array();
+    
+    function get()    
+    {
+        //DB_DataObject::debugLevel(1);
+        date_default_timezone_set('UTC');
+        
+        
+        $w = DB_DataObject::factory('core_notify');
+         
+        
+         
+        /* For each watcher, compute the changes.
+         * Group changes by ticket, sending one email per ticket.
+         * Group tickets into batch updates if the only fields that changed are
+         * bulk update style (milestone, assignment etc.)
+         *
+         * For the wiki repo, group by file so that serial edits within the batch
+         * period show up as a single email.
+         */
+         
+    }
+}
\ No newline at end of file