From 7416e50daa6f792f73e47141fa7ac3bfc843b1e0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 16 Sep 2008 15:53:46 -0400 Subject: 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 --- classes/Message.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'classes/Message.php') 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); + } } -- cgit v1.2.3-54-g00ecf