interface SimplenewsSourceNodeInterface in Simplenews 7
Source interface based on a node.
This is the interface that needs to be implemented to be compatible with the default simplenews spool implementation and therefore exposed in hook_simplenews_source_cache_info().
Hierarchy
- interface \SimplenewsSourceInterface
- interface \SimplenewsSourceNodeInterface
Expanded class hierarchy of SimplenewsSourceNodeInterface
All classes that implement SimplenewsSourceNodeInterface
Related topics
File
- includes/
simplenews.source.inc, line 120 - Contains SimplenewsSource interface and implementations.
View source
interface SimplenewsSourceNodeInterface extends SimplenewsSourceInterface {
/**
* Create a source based on a node and subscriber.
*/
function __construct($node, $subscriber);
/**
* Returns the actually used node of this source.
*/
function getNode();
/**
* Returns the subscriber object.
*/
function getSubscriber();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SimplenewsSourceInterface:: |
function | Returns an array of attachments for this newsletter mail. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the mail body. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the mail footer. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the mail format. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the plain mail address. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the formatted from mail address. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the mail headers. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the mail key to be used for drupal_mail(). | 2 | |
SimplenewsSourceInterface:: |
function | The language that should be used for this newsletter mail. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the plaintext body. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the plain footer. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the recipent of this newsletter mail. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the mail subject. | 2 | |
SimplenewsSourceInterface:: |
function | Returns the token context to be used with token replacements. | 2 | |
SimplenewsSourceNodeInterface:: |
function | Returns the actually used node of this source. | 1 | |
SimplenewsSourceNodeInterface:: |
function | Returns the subscriber object. | 1 | |
SimplenewsSourceNodeInterface:: |
function | Create a source based on a node and subscriber. | 1 |