*/
public static function updateParticipantSummaries(array $conversationIDs) {
$conversationList = new ConversationList();
- $conversationList->getConditionBuilder()->add('conversation.conversationID IN (?)', array($conversationIDs));
+ $conversationList->setObjectIDs($conversationIDs);
$conversationList->readObjects();
foreach ($conversationList as $conversation) {
*/
public static function updateParticipantCounts(array $conversationIDs) {
$conversationList = new ConversationList();
- $conversationList->getConditionBuilder()->add('conversation.conversationID IN (?)', array($conversationIDs));
+ $conversationList->setObjectIDs($conversationIDs);
$conversationList->readObjects();
foreach ($conversationList as $conversation) {
protected function getMessages(array $data) {
// read messages
$messageList = new ConversationMessageList();
- $messageList->getConditionBuilder()->add("conversation_message.messageID IN (?)", array(array_keys($data)));
+ $messageList->setObjectIDs(array_keys($data));
$messageList->readObjects();
$messages = $messageList->getObjects();
$quotedMessages = array();
if (!empty($conversationIDs)) {
$conversationList = new ConversationList();
- $conversationList->getConditionBuilder()->add("conversation.conversationID IN (?)", array($conversationIDs));
+ $conversationList->setObjectIDs($conversationIDs);
$conversationList->readObjects();
$conversations = $conversationList->getObjects();
*/
public function cacheObjects(array $objectIDs, array $additionalData = null) {
$messageList = new SearchResultConversationMessageList();
- $messageList->getConditionBuilder()->add('conversation_message.messageID IN (?)', array($objectIDs));
+ $messageList->setObjectIDs($objectIDs);
$messageList->readObjects();
foreach ($messageList->getObjects() as $message) {
$this->messageCache[$message->messageID] = $message;