public function PrivateMessageInsertMessagesCommand::__construct in Private Message 8.2
Same name and namespace in other branches
- 8 src/Ajax/PrivateMessageInsertMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertMessagesCommand::__construct()
Construct a PrivateMessageInsertMessagesCommand object.
Parameters
string $insertType: The type of messages to be inserted in the page. Possible values:
- new
- previous.
string $messages: The HTML for the messages to be inserted in the page.
int $messagesCount: The number of messages.
2 calls to PrivateMessageInsertMessagesCommand::__construct()
- PrivateMessageInsertNewMessagesCommand::__construct in src/
Ajax/ PrivateMessageInsertNewMessagesCommand.php - Constructs a PrivateMessageInsertNewMessagesCommand object.
- PrivateMessageInsertPreviousMessagesCommand::__construct in src/
Ajax/ PrivateMessageInsertPreviousMessagesCommand.php - Constructs a PrivateMessageInsertPreviousMessagesCommand object.
2 methods override PrivateMessageInsertMessagesCommand::__construct()
- PrivateMessageInsertNewMessagesCommand::__construct in src/
Ajax/ PrivateMessageInsertNewMessagesCommand.php - Constructs a PrivateMessageInsertNewMessagesCommand object.
- PrivateMessageInsertPreviousMessagesCommand::__construct in src/
Ajax/ PrivateMessageInsertPreviousMessagesCommand.php - Constructs a PrivateMessageInsertPreviousMessagesCommand object.
File
- src/
Ajax/ PrivateMessageInsertMessagesCommand.php, line 42
Class
- PrivateMessageInsertMessagesCommand
- Base class for Ajax command to insert messages into a private message thread.
Namespace
Drupal\private_message\AjaxCode
public function __construct($insertType, $messages, $messagesCount) {
$this->insertType = $insertType;
$this->messages = $messages;
$this->messagesCount = $messagesCount;
}