You are here

abstract class Messaging_Object in Messaging 7

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

Base class for all Notifications objects

Hierarchy

Expanded class hierarchy of Messaging_Object

File

./messaging.module, line 32

View source
abstract class Messaging_Object {

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

  /**
   * They need a build function
   */
  public static function build_object($object) {
    return new Messaging_Object($object);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Messaging_Object::build_object public static function They need a build function 2
Messaging_Object::__construct public function Constructor