1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
MessageBoxCollection.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Main\Messenger\Entity;
6
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}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804