Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
messageaccess.php
1<?php
2
3namespace Bitrix\Mail\Storage;
4
7
12{
13
15 {
16 return $this->getCollectionByMessageId($message->getId(), $message->getMailboxId());
17 }
18
19 public function getCollectionByMessageId(int $messageId, int $mailboxId): \Bitrix\Mail\Collection\MessageAccess
20 {
21 $rows = MessageAccessTable::getList(array(
22 // 'select' => array('ENTITY_TYPE', 'ENTITY_ID'),
23 'filter' => array(
24 '=MESSAGE_ID' => $messageId,
25 '=MAILBOX_ID' => $mailboxId,
26 ),
27 ))->fetchAll();
28
29 return \Bitrix\Mail\Collection\MessageAccess::fromArray($rows);
30 }
31}
getCollectionForMessage(\Bitrix\Mail\Item\Message $message)
getCollectionByMessageId(int $messageId, int $mailboxId)