$o = $w->object();
$p = $w->person();
+ // let's work out the last notification sent to this user..
+ $l = DB_DataObject::factory($this->table);
+ $l->setFrom($w->toArray());
+ unset($l->sent);
+ unset($l->act_when);
+ $l->whereAdd('id != '. $w->id);
+ $l->orderBy('sent DESC');
+ $l->limit(1);
+ $ar = $l->fetchAll('sent');
+ $last = empty($ar) ? date('Y-m-d H:i:s', 0) : $ar['sent'];
+
+
$email = $o->toEmail($p,)
// should we fetch the watch that caused it.. - which should contain the method to call..