InitializationTrait
Initialization and data loading of the comment thread component.
Requires in the host class:
$this->commentManager(CommentManager)$this->userManager(UserManager)$this->threadId$this->settings$this->presentercommentsPerPage(): int,$this->commentPage$this->template
Table of Contents
Methods
- initializeRender() : void
- Loads comments from the database and prepares them for the template.
- initializeUsers() : void
- Loads avatars of the users who contributed to the discussion.
- sortMessageList() : void
- Sorts comments by parent id for tree display.
Methods
initializeRender()
Loads comments from the database and prepares them for the template.
private
initializeRender() : void
initializeUsers()
Loads avatars of the users who contributed to the discussion.
private
initializeUsers(iterable<string|int, Comment> $messageList) : void
Parameters
- $messageList : iterable<string|int, Comment>
sortMessageList()
Sorts comments by parent id for tree display.
private
sortMessageList(iterable<string|int, Comment> $messageList) : void
Parameters
- $messageList : iterable<string|int, Comment>