class FeedsExTestMessenger in Feeds extensible parsers 7
Same name and namespace in other branches
- 7.2 src/FeedsExBase.inc \FeedsExTestMessenger
Stores messages without calling drupal_set_mesage().
Hierarchy
- class \FeedsExTestMessenger implements FeedsExMessengerInterface
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedsExTestMessenger:: |
protected | property | The messages that have been set. | |
FeedsExTestMessenger:: |
public | function | Returns the messages. | |
FeedsExTestMessenger:: |
public | function |
Sets a message to display to the user. Overrides FeedsExMessengerInterface:: |