DataObjects/Core_notify.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 13 Jun 2011 08:05:42 +0000 (16:05 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 13 Jun 2011 08:05:42 +0000 (16:05 +0800)
DataObjects/Core_notify.php

index 7ba4f6b..ce54696 100644 (file)
@@ -22,4 +22,29 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
     
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
+    
+    function person()
+    {
+        $c = DB_DataObject::Factory('Person');
+        $c->get($this->person_id);
+        return $c;
+        
+    }
+    function object()
+    {
+        $c = DB_DataObject::factory($this->ontable);
+        $c->autoJoin();
+        if ($c->get($this->onid)) {
+            return $c;
+        }
+        return false;
+        
+    }
+    
+    function delivered()
+    {
+        return !empty($msgid);
+    }
+    
+}
 }