$n->trigger_event_id = $event->id;
$n->person_id = $watch->person_id;
$n->watch_id = $watch->id;
+ $n->evtype = $watch->medium;
// does this watch already have a flag...
$nf = clone($n);
$n->act_start( empty($n->act_start) ? date("Y-m-d H:i:s") : $n->act_start );
$n->insert();
}
-
-
-
+
}
function initDatabase($roo, $data) {
foreach($data as $d) {
."\n");
}
+
if (isset($email['later'])) {
$old = clone($w);
echo "calling :" . get_class($object) . '::' .$m . "\n";
return $object->$m($rcpt, $last_sent_date, $notify, $force);
}
-
+ // fallback if evtype is empty..
+
if (method_exists($object, 'toMailerData')) {
return $object->toMailerData(array(
'rcpts'=>$rcpt,
//var_Dump($object);
//exit;
}
+ if (method_exists($object, 'toEmail')) {
+ return $object->toEmail($rcpt, $last_sent_date, $notify, $force);
+ }
+ // no way to send this.. - this needs to handle core_notify how we have used it for the approval stuff..
- return $object->toEmail($rcpt, $last_sent_date, $notify, $force);
+ return false;
}
function debug($str)