You are here

interface PuSHSubscriberEnvironmentInterface in Feeds 7.2

Same name and namespace in other branches
  1. 6 libraries/PuSHSubscriber.inc \PuSHSubscriberEnvironmentInterface
  2. 7 libraries/PuSHSubscriber.inc \PuSHSubscriberEnvironmentInterface

Implement to provide environmental functionality like user messages and logging.

Hierarchy

Expanded class hierarchy of PuSHSubscriberEnvironmentInterface

All classes that implement PuSHSubscriberEnvironmentInterface

File

libraries/PuSHSubscriber.inc, line 379
Pubsubhubbub subscriber library.

View source
interface PuSHSubscriberEnvironmentInterface {

  /**
   * A message to be displayed to the user on the current page load.
   *
   * @param $msg
   *   A string that is the message to be displayed.
   * @param $level
   *   A string that is either 'status', 'warning' or 'error'.
   */
  public function msg($msg, $level = 'status');

  /**
   * A log message to be logged to the database or the file system.
   *
   * @param $msg
   *   A string that is the message to be displayed.
   * @param $level
   *   A string that is either 'status', 'warning' or 'error'.
   */
  public function log($msg, $level = 'status');

}

Members

Namesort descending Modifiers Type Description Overrides
PuSHSubscriberEnvironmentInterface::log public function A log message to be logged to the database or the file system. 1
PuSHSubscriberEnvironmentInterface::msg public function A message to be displayed to the user on the current page load. 1