Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
messageaccess.php
1
<?php
2
3
namespace
Bitrix\Mail\Storage
;
4
5
use
Bitrix\Mail\IMessageAccessStorage
;
6
use
Bitrix\Mail\Internals\MessageAccessTable
;
7
11
class
MessageAccess
implements
IMessageAccessStorage
12
{
13
14
public
function
getCollectionForMessage
(\
Bitrix
\
Mail
\Item\
Message
$message): \
Bitrix
\
Mail
\
Collection
\
MessageAccess
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
}
Bitrix\Mail\Internals\MessageAccessTable
Definition
messageaccess.php:25
Bitrix\Mail\Storage\MessageAccess
Definition
messageaccess.php:12
Bitrix\Mail\Storage\MessageAccess\getCollectionForMessage
getCollectionForMessage(\Bitrix\Mail\Item\Message $message)
Definition
messageaccess.php:14
Bitrix\Mail\Storage\MessageAccess\getCollectionByMessageId
getCollectionByMessageId(int $messageId, int $mailboxId)
Definition
messageaccess.php:19
Bitrix\Mail\Storage\Message
Definition
message.php:12
Bitrix\Main\ORM\Objectify\Collection
Definition
collection.php:33
Bitrix\Mail\IMessageAccessStorage
Definition
imessageaccessstorage.php:6
Bitrix\Mail\Storage
Definition
message.php:3
Bitrix\Main\Mail
Definition
address.php:8
Bitrix
modules
mail
lib
storage
messageaccess.php
Создано системой
1.10.0