+ $nn = DB_DataObject::Factory('core_notify');
+ $nn->ontable = $event->on_table;
+ $nn->onid = $event->on_id;
+
+ foreach($watches as $watch) {
+ if (!$watch->person_id) { // no people??? bugs in watch table
+ $dom = explode(':',$watch->event);
+ if (count($dom) != 2) {
+ continue;
+ }
+ $do = DB_DataObject::factory($dom[0]);
+ if (!method_exists($do,$dom[1])) {
+ continue;
+ }
+ $do->{$dom[1]}($event);
+