From 11c6d8de0375e4c835c73a7316e3f003deeaec5b Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 10 Nov 2016 15:47:13 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index e8f140a2..fd366d48 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -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; + } + } -- 2.39.2