You are here

function Messaging_Message::get_sender in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_message.class.inc \Messaging_Message::get_sender()

Get sender parameters or single property

1 call to Messaging_Message::get_sender()
Messaging_Message::get_sender_name in ./messaging.message.inc
Get sender name

File

./messaging.message.inc, line 244
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

function get_sender($property = NULL) {
  if (!$property) {
    return $this->sender;
  }
  else {
    return isset($this->sender[$property]) ? $this->sender[$property] : NULL;
  }
}