+
+ }
+ /**
+ * Generate a notify event based on watches (matching whereAdd)
+ *
+ * Usage: $core_watch->notify('mtrack_repos', 1, false, date()
+ */
+ function notify($ontable , $onid, $whereAdd = false, $when=false)
+ {
+ $w = DB_DataObject::factory('core_watch');
+ if ($whereAdd !== false) {
+ $w->whereAdd($whereAdd );
+ }
+ //$w->selectAdd();
+ //$w->selectAdd('distinct(person_id) as person_id');