You are here

function Notifications_Template::__construct in Notifications 6.3

Class constructor, create a template of given type

Overrides Messaging_Template::__construct

File

classes/notifications_template.class.inc, line 31
Notification Template classes

Class

Notifications_Template
Notifications Template

Code

function __construct($type, $parent = NULL, $method = NULL, $language = NULL, $module = 'notifications') {
  parent::__construct($type, $parent, $method, $language);
  if ($parent) {
    $this->module = $parent->module;
  }
  else {
    $this->module = $module;
    $this->objects['notifications'] = NULL;
  }
}