5 use wcf\data\conversation\FeedConversationList
;
9 * Shows most recent conversations.
11 * @author Alexander Ebert
12 * @copyright 2001-2019 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package WoltLabSuite\Core\Page
16 class ConversationFeedPage
extends AbstractFeedPage
21 public $loginRequired = true;
26 public function readData()
30 $this->items
= new FeedConversationList();
31 $this->items
->getConditionBuilder()->add('conversation_to_user.participantID = ?', [WCF
::getUser()->userID
]);
32 $this->items
->getConditionBuilder()->add('conversation_to_user.hideConversation = ?', [0]);
33 $this->items
->sqlConditionJoins
= "
34 LEFT JOIN wcf" . WCF_N
. "_conversation conversation
35 ON conversation.conversationID = conversation_to_user.conversationID";
36 $this->items
->sqlLimit
= 20;
37 $this->items
->readObjects();
39 $this->title
= WCF
::getLanguage()->get('wcf.conversation.conversations');