diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-09-16 15:53:46 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-09-16 15:53:46 -0400 |
commit | 7416e50daa6f792f73e47141fa7ac3bfc843b1e0 (patch) | |
tree | 4de167e88ce6aad9e9a68b8d956ce9815fc10552 /classes/Message.php | |
parent | d57b39e8a5596e91ffae4d583e18934b807b8e43 (diff) |
inbox and outbox for direct messages
Added an inbox and outbox for direct messages.
Factored common code to mailbox.php. Factored common code with
stream.php to personal.php.
darcs-hash:20080916195346-84dde-b5c846f713a970c41fd1b0671cb333e91f3cb920.gz
Diffstat (limited to 'classes/Message.php')
-rw-r--r-- | classes/Message.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/Message.php b/classes/Message.php index 3f01e3c83..93ec419d4 100644 --- a/classes/Message.php +++ b/classes/Message.php @@ -26,4 +26,12 @@ class Message extends DB_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + function getFrom() { + return Profile::staticGet('id', $this->from_profile); + } + + function getTo() { + return Profile::staticGet('id', $this->to_profile); + } } |