From 83da2180ee7c2778a4009280f0dba7cc54d08be2 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 3 Sep 2013 14:49:08 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index fe84b84b..edb070cb 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -105,6 +105,19 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject return false; } + + function triggerEvent() + { + + $c = DB_DataObject::factory('Events'); + + if ($c->get($this->trigger_event_id)) { + return $c; + } + return false; + + } + function delivered() { return !empty($this->msgid); -- 2.39.2