DataObjects/Core_notify.php
authoredward <edward@roojs.com>
Thu, 10 Nov 2016 07:47:13 +0000 (15:47 +0800)
committeredward <edward@roojs.com>
Thu, 10 Nov 2016 07:47:13 +0000 (15:47 +0800)
DataObjects/Core_notify.php

index e8f140a..fd366d4 100644 (file)
@@ -318,4 +318,22 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         
     }
     
+    function sendManual()
+    {   
+        require_once 'Pman/Core/NotifySend.php';
+        
+        $send = new Pman_Core_NotifySend();
+        $send->error_handler = 'exception';
+        
+        try {
+            $send->get($this->id, array());
+        } catch (Exception $e) {
+            // nothing to do
+        }
+        
+        ob_end_clean();
+        
+        return;
+    }
+    
 }