You are here

function Messaging_Message::get_sender in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.message.inc \Messaging_Message::get_sender()

Get sender account

2 calls to Messaging_Message::get_sender()
Messaging_Message::get_sender_name in includes/messaging_message.class.inc
Get sender name
Messaging_Message::__get in includes/messaging_message.class.inc
Magic method, get protected properties

File

includes/messaging_message.class.inc, line 604
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function get_sender() {
  if (!isset($this->_sender)) {
    $sender = !empty($this->sender) ? messaging_load_user($this->sender) : NULL;
    $this->_sender = $sender ? $sender : FALSE;
  }
  return $this->_sender;
}