Notify.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Aug 2011 02:45:01 +0000 (10:45 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Aug 2011 02:45:01 +0000 (10:45 +0800)
Notify.php

index 690d423..3b87670 100644 (file)
@@ -30,7 +30,7 @@ class Pman_Core_Notify extends Pman
         'list' => array(
             'desc' => 'List message to send, do not send them..',
             'default' => 0,
-            'short' => 'v',
+            'short' => 'l',
             'min' => 1,
             'max' => 1,
             
@@ -81,6 +81,22 @@ class Pman_Core_Notify extends Pman
         
         $ar = $w->fetchAll();
         
+        if (!empty($opts['list'])) {
+            foreach($ar as $w) {
+                $o = $w->object();
+                $p = $w->person();
+                
+                echo "$e->id : $w->email    : ". $w->toEventString()."\n";
+            }
+            exit;
+            
+            
+            
+            
+        }
+        
+        
+        
         while (true) {
             if (empty($ar)) {
                 break;