You are here

class FeedsExTestMessenger in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExBase.inc \FeedsExTestMessenger

Stores messages without calling drupal_set_mesage().

Hierarchy

Expanded class hierarchy of FeedsExTestMessenger

File

src/FeedsExBase.inc, line 823
Contains FeedsExBase.

View source
class FeedsExTestMessenger implements FeedsExMessengerInterface {

  /**
   * The messages that have been set.
   *
   * @var array
   */
  protected $messages = array();

  /**
   * {@inheritdoc}
   */
  public function setMessage($message = NULL, $type = 'status', $repeat = TRUE) {
    $this->messages[] = array(
      'message' => $message,
      'type' => $type,
      'repeat' => $repeat,
    );
  }

  /**
   * Returns the messages.
   *
   * This is used to inspect messages that have been set.
   *
   * @return array
   *   A list of message arrays.
   */
  public function getMessages() {
    return $this->messages;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FeedsExTestMessenger::$messages protected property The messages that have been set.
FeedsExTestMessenger::getMessages public function Returns the messages.
FeedsExTestMessenger::setMessage public function Sets a message to display to the user. Overrides FeedsExMessengerInterface::setMessage