X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=edb070cbb11400db10992c3e28b6e2dcf909c0c5;hp=fe84b84b082484c1bebf42f13c084ea8c50cf3cc;hb=83da2180ee7c2778a4009280f0dba7cc54d08be2;hpb=3736a3f6140f8886068eff43ada1326509b272cd 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);