From: edward Date: Thu, 10 Nov 2016 07:47:13 +0000 (+0800) Subject: DataObjects/Core_notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=11c6d8de0375e4c835c73a7316e3f003deeaec5b DataObjects/Core_notify.php --- 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; + } + }