class PrivateMessageInsertNewMessagesCommand in Private Message 8.2
Same name and namespace in other branches
- 8 src/Ajax/PrivateMessageInsertNewMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertNewMessagesCommand
Class to insert new private messages into a private message thread.
Hierarchy
- class \Drupal\private_message\Ajax\PrivateMessageInsertMessagesCommand implements CommandInterface
- class \Drupal\private_message\Ajax\PrivateMessageInsertNewMessagesCommand
Expanded class hierarchy of PrivateMessageInsertNewMessagesCommand
1 file declares its use of PrivateMessageInsertNewMessagesCommand
- AjaxController.php in src/
Controller/ AjaxController.php
File
- src/
Ajax/ PrivateMessageInsertNewMessagesCommand.php, line 8
Namespace
Drupal\private_message\AjaxView source
class PrivateMessageInsertNewMessagesCommand extends PrivateMessageInsertMessagesCommand {
/**
* Constructs a PrivateMessageInsertNewMessagesCommand object.
*
* @param string $messages
* The HTML for the messages to be inserted in the page.
* @param int $messagesCount
* The number of messages.
*/
public function __construct($messages, $messagesCount) {
parent::__construct('new', $messages, $messagesCount);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrivateMessageInsertMessagesCommand:: |
protected | property | The type of messages to be inserted in the page. | |
PrivateMessageInsertMessagesCommand:: |
protected | property | The HTML for the messages to be inserted in the page. | |
PrivateMessageInsertMessagesCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
1 |
PrivateMessageInsertNewMessagesCommand:: |
public | function |
Constructs a PrivateMessageInsertNewMessagesCommand object. Overrides PrivateMessageInsertMessagesCommand:: |