DataObjects/Core_notify.php
[Pman.Core] / DataObjects / Core_notify.php
index c420e57..40063d0 100644 (file)
@@ -42,7 +42,9 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
     public $trigger_event_id;              // int(11)  
     public $evtype;                         // event type (or method to call)fall
     public $act_start;
-    
+    public $person_table;
+
+
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
     
@@ -52,6 +54,8 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
             $this->person_id = is_object($set) ? $set->id : $set;
             return;
         }
+        
+        $person_table = 
         $c = DB_DataObject::Factory('Person');
         $c->get($this->person_id);
         return $c;
@@ -237,6 +241,12 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
             ");
         }
         
+        if(!empty($q['to'])){
+            $this->whereAdd("
+                act_when <= '{$q['to']}'
+            ");
+        }
+        
     }
     
 }