* medium = "REVIEW" << eg. review needed..
*
*
+ * if onid == 0 then it will monitor all changes to that table..
+ *
+ *
*
*
*/
*
* This get's called by roo->jok()
*
+ * And searches for matching '$watch->event' == $event->action
+ * along with id/table etc..
*
* it's basic usage is to fill in core_notify after an event has happend.
*
* We can also use it to notify other modules if something has happend.
* = eg. mtrack_ticket * watch will notify mtrack_jira::
*
- * in that example:
- * public $ontable; // string(128) not_null
- public $onid; // int(11) not_null
- public $person_id; // int(11) not_null
- public $event; // string(128) not_null
- public $medium; // string(128) not_null
- public $active; // int(11) not_null
-
+ * @param Pman_Core_DataObject_Events $event - the Pman event dataobject that was created
+ *
*/
function notifyEvent($event)
// does this watch already have a flag...
$nf = clone($n);
- $nf->whereAdd("sent ><'2000-01-01'");
+ $nf->whereAdd("sent < '2000-01-01'");
//$nf->whereAdd('sent < act_when');
if ($nf->count()) {
// we have a item in the queue for that waiting to be sent..