DataObjects/Core_notify.php
authorChris <chris@roojs.com>
Tue, 3 Sep 2013 06:49:08 +0000 (14:49 +0800)
committerChris <chris@roojs.com>
Tue, 3 Sep 2013 06:49:08 +0000 (14:49 +0800)
DataObjects/Core_notify.php

index fe84b84..edb070c 100644 (file)
@@ -105,6 +105,19 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         return false;
         
     }
         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);
     function delivered()
     {
         return !empty($this->msgid);