projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
227af2c
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 13 Jun 2011 08:05:42 +0000
(16:05 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 13 Jun 2011 08:05:42 +0000
(16:05 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
7ba4f6b
..
ce54696
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-22,4
+22,29
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function person()
+ {
+ $c = DB_DataObject::Factory('Person');
+ $c->get($this->person_id);
+ return $c;
+
+ }
+ function object()
+ {
+ $c = DB_DataObject::factory($this->ontable);
+ $c->autoJoin();
+ if ($c->get($this->onid)) {
+ return $c;
+ }
+ return false;
+
+ }
+
+ function delivered()
+ {
+ return !empty($msgid);
+ }
+
+}
}