projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f060f21
)
DataObjects/Core_watch.php
author
Alan Knowles
<alan@roojs.com>
Wed, 6 May 2015 04:50:12 +0000
(12:50 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 6 May 2015 04:50:12 +0000
(12:50 +0800)
DataObjects/Core_watch.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_watch.php
b/DataObjects/Core_watch.php
index
5e33ef3
..
396dd88
100644
(file)
--- a/
DataObjects/Core_watch.php
+++ b/
DataObjects/Core_watch.php
@@
-217,8
+217,8
@@
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
function notifyEvent($event)
{
function notifyEvent($event)
{
- print_r($event);
- DB_DataObject::DebugLevel(1);
+
//
print_r($event);
+
//
DB_DataObject::DebugLevel(1);
// see if there are any watches on events..
// notify everyone flagged except the person doing it...
// this is very basic logic... -
// see if there are any watches on events..
// notify everyone flagged except the person doing it...
// this is very basic logic... -
@@
-235,14
+235,14
@@
class Pman_Core_DataObjects_Core_watch extends DB_DataObject
$w->event = $event->action;
$w->active = 1;
$w->event = $event->action;
$w->active = 1;
- // not sure why this is here...
+ // not sure why this is here...
- it breaks on the reader article ->
if ($event->person_id) {
$w->whereAdd('person_id != '. (int) $event->person_id);
}
$watches = $w->fetchAll();
if ($event->person_id) {
$w->whereAdd('person_id != '. (int) $event->person_id);
}
$watches = $w->fetchAll();
- print_R($watches);
+
//
print_R($watches);
$nn = DB_DataObject::Factory('core_notify');
$nn->ontable = $event->on_table;
$nn = DB_DataObject::Factory('core_notify');
$nn->ontable = $event->on_table;