diff options
Diffstat (limited to 'classes')
-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); + } } |