class Messaging_Mail_Address in Messaging 7
Mail addresses
Hierarchy
- class \Messaging_Object
- class \Messaging_Destination
- class \Messaging_Mail_Address
- class \Messaging_Destination
Expanded class hierarchy of Messaging_Mail_Address
1 string reference to 'Messaging_Mail_Address'
- messaging_mail_messaging in messaging_mail/
messaging_mail.module - Implementation of hook_messaging().
File
- messaging_mail/
messaging_mail.inc, line 212 - Drupal Messaging Framework - Send_Method class file
View source
class Messaging_Mail_Address extends Messaging_Destination {
public $type = 'mail';
/**
* Get name for display
*/
function address_name() {
return t('E-mail address');
}
/**
* Get user from address
*/
public static function get_user_from_address($mail) {
return user_load_by_mail($mail);
}
/**
* Get address from user
*/
public static function get_address_from_user($user) {
if ($user = messaging_user_object($user)) {
return !empty($user->mail) ? $user->mail : NULL;
}
}
public static function validate_address($address, $type = NULL) {
return valid_email_address($address);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Messaging_Destination:: |
public | property | 1 | |
Messaging_Destination:: |
public | property | ||
Messaging_Destination:: |
public | property | ||
Messaging_Destination:: |
public | property | ||
Messaging_Destination:: |
public | property | ||
Messaging_Destination:: |
public | property | ||
Messaging_Destination:: |
function | Get address type information | ||
Messaging_Destination:: |
public static | function | Build destination object | |
Messaging_Destination:: |
public static | function | Build from address | |
Messaging_Destination:: |
public static | function | Build from method, address, user | |
Messaging_Destination:: |
public static | function |
Build destination from db object Overrides Messaging_Object:: |
|
Messaging_Destination:: |
public static | function | Build from address type | |
Messaging_Destination:: |
public static | function | Build from user account | |
Messaging_Destination:: |
public static | function | Cache get/set by method and address | |
Messaging_Destination:: |
public | function | Save object to cache | |
Messaging_Destination:: |
public static | function | ||
Messaging_Destination:: |
public | function | Save object to cache | |
Messaging_Destination:: |
public static | function | ||
Messaging_Destination:: |
public static | function | Create from array data | |
Messaging_Destination:: |
public static | function | Create for sending method | |
Messaging_Destination:: |
public static | function | Create with parameters | |
Messaging_Destination:: |
public static | function | Delete messaging destination object/s | |
Messaging_Destination:: |
function | Format destination | ||
Messaging_Destination:: |
public static | function | Format address. | 1 |
Messaging_Destination:: |
public static | function | Get from db using conditions | |
Messaging_Destination:: |
function | Get address for sending | 1 | |
Messaging_Destination:: |
public static | function | Get destination by method and address. This allows advanced caching. | |
Messaging_Destination:: |
function | Get address name (will be user name if available) | ||
Messaging_Destination:: |
function | Get address type name for display | ||
Messaging_Destination:: |
function | Get user account | ||
Messaging_Destination:: |
function | Get unique index for this destination | 1 | |
Messaging_Destination:: |
protected | function | Run module_invoke_all('notifications_subscription') with this object | |
Messaging_Destination:: |
public static | function | Load object from database | |
Messaging_Destination:: |
public static | function | Load multiple events | |
Messaging_Destination:: |
function | Set user for this destination | 1 | |
Messaging_Destination:: |
protected static | function | Invoke static method on address type. | |
Messaging_Destination:: |
constant | |||
Messaging_Destination:: |
constant | |||
Messaging_Destination:: |
public static | function | Validate values to create a destination | |
Messaging_Destination:: |
public static | function | Validate values to create a destination | |
Messaging_Destination:: |
public | function | ||
Messaging_Mail_Address:: |
public | property |
Overrides Messaging_Destination:: |
|
Messaging_Mail_Address:: |
function | Get name for display | ||
Messaging_Mail_Address:: |
public static | function |
Get address from user Overrides Messaging_Destination:: |
|
Messaging_Mail_Address:: |
public static | function |
Get user from address Overrides Messaging_Destination:: |
|
Messaging_Mail_Address:: |
public static | function |
Validate address format Overrides Messaging_Destination:: |
|
Messaging_Object:: |
public | function | Constructor |