MTrackWeb/Cron/Notify.php
authorAlan Knowles <alan@akbkhome.com>
Sun, 27 Mar 2011 04:59:51 +0000 (12:59 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 27 Mar 2011 04:59:51 +0000 (12:59 +0800)
MTrackWeb/Cron/Notify.php

index 3a42080..f1326ab 100644 (file)
@@ -50,7 +50,20 @@ class MTrackWeb_Cron_Notify extends MTrackWeb
         $messages = array();
         foreach($watches as $uid => $ar) {
             // we can now query mtrack_change for anything that occured in that list..
-            $messages[$uid]  = $CS->gatherChanges($e->event_when, $uid, $ar);
+            $messages = $CS->gatherChanges($e->event_when, $uid, $ar);
+            print_R($messages);exit;
+            // we should cache the emails. = as multiple people might be getting the same email.
+            
+            // should be like a list of tickets
+            foreach $messages as $m=>$ar) {
+                
+                
+            }
+            
+            
+            
+            
+            
             
         }
         print_R($messages);
@@ -70,6 +83,8 @@ class MTrackWeb_Cron_Notify extends MTrackWeb
          */
          
     }
+    
+    
     /**
      * sets:
      *   - from (system or a specific user.)