1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
MessageBoxCollection.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Main\Messenger\Entity;
6
10
class
MessageBoxCollection
implements
MessageBoxCollectionInterface
11
{
15
protected
array
$items
= [];
16
20
public
function
__construct
(
MessageBox
...
$items
)
21
{
22
foreach
(
$items
as $item)
23
{
24
$this->
add
($item);
25
}
26
}
27
28
public
function
count
(): int
29
{
30
return
count
($this->items);
31
}
32
33
public
function
isEmpty
(): bool
34
{
35
return
empty($this->items);
36
}
37
38
public
function
getIterator
(): \ArrayIterator
39
{
40
return
new \ArrayIterator($this->items);
41
}
42
43
public
function
add
(
MessageBox
$item): void
44
{
45
$this->items[] = $item;
46
}
47
51
public
function
toArray
():
array
52
{
53
return
$this->items
;
54
}
55
}
Bitrix\Main\Messenger\Entity\MessageBoxCollection
Определения
MessageBoxCollection.php:11
Bitrix\Main\Messenger\Entity\MessageBoxCollection\add
add(MessageBox $item)
Определения
MessageBoxCollection.php:43
Bitrix\Main\Messenger\Entity\MessageBoxCollection\toArray
toArray()
Определения
MessageBoxCollection.php:51
Bitrix\Main\Messenger\Entity\MessageBoxCollection\__construct
__construct(MessageBox... $items)
Определения
MessageBoxCollection.php:20
Bitrix\Main\Messenger\Entity\MessageBoxCollection\getIterator
getIterator()
Определения
MessageBoxCollection.php:38
Bitrix\Main\Messenger\Entity\MessageBoxCollection\$items
array $items
Определения
MessageBoxCollection.php:15
Bitrix\Main\Messenger\Entity\MessageBoxCollection\count
count()
Определения
MessageBoxCollection.php:28
Bitrix\Main\Messenger\Entity\MessageBoxCollection\isEmpty
isEmpty()
Определения
MessageBoxCollection.php:33
Bitrix\Main\Messenger\Entity\MessageBox
Определения
MessageBox.php:16
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Messenger\Entity\MessageBoxCollectionInterface
Определения
MessageBoxCollectionInterface.php:11
bitrix
modules
main
lib
Messenger
Entity
MessageBoxCollection.php
Создано системой
1.14.0