Apply PSR-12 code style (#145)
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / data / conversation / message / SearchResultConversationMessageList.class.php
1 <?php
2
3 namespace wcf\data\conversation\message;
4
5 /**
6 * Represents a list of search results.
7 *
8 * @author Marcel Werk
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\Data\Conversation\Message
12 *
13 * @method SearchResultConversationMessage current()
14 * @method SearchResultConversationMessage[] getObjects()
15 * @method SearchResultConversationMessage|null search($objectID)
16 * @property SearchResultConversationMessage[] $objects
17 */
18 class SearchResultConversationMessageList extends SimplifiedViewableConversationMessageList
19 {
20 /**
21 * @inheritDoc
22 */
23 public $decoratorClassName = SearchResultConversationMessage::class;
24
25 /**
26 * Creates a new SearchResultConversationMessageList object.
27 */
28 public function __construct()
29 {
30 parent::__construct();
31
32 if (!empty($this->sqlSelects)) {
33 $this->sqlSelects .= ',';
34 }
35 $this->sqlSelects .= 'conversation.subject';
36 $this->sqlJoins .= " LEFT JOIN wcf" . WCF_N . "_conversation conversation ON (conversation.conversationID = conversation_message.conversationID)";
37 }
38 }