projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d99c0b9
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 23 Aug 2011 06:57:29 +0000
(14:57 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 23 Aug 2011 06:57:29 +0000
(14:57 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
aa2e898
..
8369c83
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-40,8
+40,12
@@
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()
+ function person(
$set
)
{
+ if ($set !== false) {
+ $this->person_id = is_object($set) ? $set->id : $set;
+ return;
+ }
$c = DB_DataObject::Factory('Person');
$c->get($this->person_id);
return $c;