* @param int $onid - the id of the row changed
* @param string $whereAdd (optiona) - a DB whereAdd() condition to filter the search for watches
* @param datetime $when (default now) - date/time to create the notification for (Eg. end of day..)
* @param int $onid - the id of the row changed
* @param string $whereAdd (optiona) - a DB whereAdd() condition to filter the search for watches
* @param datetime $when (default now) - date/time to create the notification for (Eg. end of day..)
- function notify($ontable , $onid, $whereAdd = false, $when=false)
+ function notify($ontable , $onid, $whereAdd = false, $when=false, $to_ontable=false, $to_onid=false)
$n->trigger_event_id = $event->id;
$n->person_id = $watch->person_id;
$n->watch_id = $watch->id;
$n->trigger_event_id = $event->id;
$n->person_id = $watch->person_id;
$n->watch_id = $watch->id;