You are here

public function Notifications_Entity::__construct in Notifications 7

Constructor

1 call to Notifications_Entity::__construct()
Notifications_Event::__construct in ./notifications.event.inc
Constructor
1 method overrides Notifications_Entity::__construct()
Notifications_Event::__construct in ./notifications.event.inc
Constructor

File

./notifications.object.inc, line 15
Drupal Notifications Framework - Default class file

Class

Notifications_Entity
Base class for all Notifications entities

Code

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