public function Messaging_Message::__toString in Messaging 6.4
Same name and namespace in other branches
- 6.3 classes/messaging_message.class.inc \Messaging_Message::__toString()
- 7 messaging.message.inc \Messaging_Message::__toString()
File
- includes/
messaging_message.class.inc, line 668 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
public function __toString() {
$subject = !empty($this->subject) ? check_plain($this->subject) : '<none>';
$method = !empty($this->method) ? $this->method : '<none>';
$destination = !empty($this->destination) ? $this->destination : '<none>';
$text = "Message: method= {$method}, destination= {$destination}, subject= {$subject}";
if (!empty($this->error)) {
$text .= " error={$this->error}, {$this->error_msg}";
}
return $text;
}