You are here

public function Messaging_Object::__construct in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_object.class.inc \Messaging_Object::__construct()

Constructor

File

./messaging.module, line 36

Class

Messaging_Object
Base class for all Notifications objects

Code

public function __construct($template = NULL) {
  if ($template) {
    $properties = (array) $template;
    foreach ($properties as $key => $value) {
      $this->{$key} = $value;
    }
  }
}