projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
784846e
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Aug 2011 03:10:47 +0000
(11:10 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Aug 2011 03:10:47 +0000
(11:10 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
3951d5c
..
5bb0863
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-57,11
+57,31
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
return false;
}
-
+ function event()
+
+ $c = DB_DataObject::factory('Events');
+
+ if ($c->get($this->event_id)) {
+ return $c;
+ }
+ return false;
+
+ }
function delivered()
{
return !empty($msgid);
}
-
+ function status()
+ {
+ switch($this->event_id) {
+ case -1:
+ 'DELIVERED';
+ case 0:
+ 'PENDING';
+ default:
+ $e = $this->event();
+ }
+
+ }
}