You are here

public static function Messaging_Destination::build in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_destination.class.inc \Messaging_Destination::build()

Build destination object

3 calls to Messaging_Destination::build()
Messaging_Destination::build_address in ./messaging.destination.inc
Build from address
Messaging_Destination::build_method in ./messaging.destination.inc
Build from method, address, user
Messaging_Destination::create_type in ./messaging.destination.inc
Create with parameters

File

./messaging.destination.inc, line 104
Drupal Messaging Framework - Default class file

Class

Messaging_Destination
Message destination class

Code

public static function build($type, $address = NULL, $uid = NULL, $validate = FALSE) {
  if (!$validate || self::validate_address($address, $type)) {
    return self::build_type($type, array(
      'address' => $address,
      'uid' => $uid,
    ));
  }
}