Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
messageaccess.php
1<?php
2
4
5use Bitrix\Mail\Item\Base as Item;
6
8{
9 public function createItem(array $array)
10 {
11 return \Bitrix\Mail\Item\MessageAccess::fromArray($array);
12 }
13
14 public function ensureItem(Item $item, $throwException = true)
15 {
16 if ($item instanceof \Bitrix\Mail\Item\MessageAccess) {
17 return true;
18 }
19 return parent::ensureItem($item, $throwException);
20 }
21}
ensureItem(Item $item, $throwException=true)