projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bd641c4
)
DataObjects/Core_notify.php
author
edward
<edward@roojs.com>
Thu, 10 Nov 2016 07:47:13 +0000
(15:47 +0800)
committer
edward
<edward@roojs.com>
Thu, 10 Nov 2016 07:47:13 +0000
(15:47 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
e8f140a
..
fd366d4
100644
(file)
--- 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;
+ }
+
}