You are here

public function Messaging_Message::__set in Messaging 7

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

Magic method, properly set some variables

File

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

Class

Messaging_Message
Message class

Code

public function __set($name, $value) {
  switch ($name) {
    case 'subject':
    case 'body':
    case 'content':
    case 'header':
    case 'footer':

      // Add text elements the right way
      $this
        ->get_template()
        ->add_element($name, $value);
  }
}