You are here

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

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

Namesort descending Modifiers Type Description Overrides
SimplenewsSourceInterface::getAttachments function Returns an array of attachments for this newsletter mail. 2
SimplenewsSourceInterface::getBody function Returns the mail body. 2
SimplenewsSourceInterface::getFooter function Returns the mail footer. 2
SimplenewsSourceInterface::getFormat function Returns the mail format. 2
SimplenewsSourceInterface::getFromAddress function Returns the plain mail address. 2
SimplenewsSourceInterface::getFromFormatted function Returns the formatted from mail address. 2
SimplenewsSourceInterface::getHeaders function Returns the mail headers. 2
SimplenewsSourceInterface::getKey function Returns the mail key to be used for drupal_mail(). 2
SimplenewsSourceInterface::getLanguage function The language that should be used for this newsletter mail. 2
SimplenewsSourceInterface::getPlainBody function Returns the plaintext body. 2
SimplenewsSourceInterface::getPlainFooter function Returns the plain footer. 2
SimplenewsSourceInterface::getRecipient function Returns the recipent of this newsletter mail. 2
SimplenewsSourceInterface::getSubject function Returns the mail subject. 2
SimplenewsSourceInterface::getTokenContext function Returns the token context to be used with token replacements. 2
SimplenewsSourceNodeInterface::getNode function Returns the actually used node of this source. 1
SimplenewsSourceNodeInterface::getSubscriber function Returns the subscriber object. 1
SimplenewsSourceNodeInterface::__construct function Create a source based on a node and subscriber. 1