BP_Messages_Thread_Template::__construct( int $thread_id, string $order = 'ASC', array $args = array() )
Constructor method.
Description Description
See also See also
- BP_Messages_Thread::populate(): for full parameter info.
Parameters Parameters
- $thread_id
-
(Required) ID of the message thread to display.
- $order
-
(Optional) Order to show the thread's messages in.
Default value: 'ASC'
- $args
-
(Optional) Array of arguments for the query.
Default value: array()
Source Source
File: bp-messages/classes/class-bp-messages-thread-template.php
public function __construct( $thread_id = 0, $order = 'ASC', $args = array() ) { $this->thread = new BP_Messages_Thread( $thread_id, $order, $args ); $this->message_count = count( $this->thread->messages ); }