You are here

function Messaging_Method::__construct in Messaging 7

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

Build send method from info array

Some of the array values will be set as properties for the object. Some others won't as they're just for formatting, so they'll be kept only in the $object->info array

File

./messaging.method.inc, line 31
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Method
Base class for all Incoming and Sending methods

Code

function __construct($method, $info = array()) {
  $this->method = $method;
  foreach ($info as $key => $value) {
    $this->{$key} = $value;
  }
  $this->info = $info;
}