You are here

protected static function Messaging_Destination::static_invoke in Messaging 7

Invoke static method on address type.

Parameters

$type: Address type

$method: Method name

$arg1, $arg2...:

2 calls to Messaging_Destination::static_invoke()
Messaging_Destination::format_address in ./messaging.destination.inc
Format address.
Messaging_Destination::validate_address in ./messaging.destination.inc
Validate address format

File

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

Class

Messaging_Destination
Message destination class

Code

protected static function static_invoke() {
  $args = func_get_args();
  $type = array_shift($args);
  $function = array_shift($args);
  $class = messaging_address_info($type, 'class', 'Messaging_Destination');
  return call_user_func_array(array(
    $class,
    $function,
  ), $args);
}