1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
GroupItemCollection.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Notification\Group;
4
5
class
GroupItemCollection
implements
\IteratorAggregate, \Countable
6
{
8
private
array
$items;
9
13
public
function
__construct
(
GroupItem
...$items)
14
{
15
$this->items = $items;
16
}
17
18
public
function
getIterator
(): \ArrayIterator
19
{
20
return
new \ArrayIterator($this->items);
21
}
22
23
public
function
count
(): int
24
{
25
return
count
($this->items);
26
}
27
28
public
function
toRestFormat
():
array
29
{
30
return
array_map(fn(
GroupItem
$item):
array
=> $item->
toRestFormat
(), $this->items);
31
}
32
36
public
function
getAll
():
array
37
{
38
return
$this->items
;
39
}
40
}
Bitrix\Im\V2\Notification\Group\GroupItemCollection
Определения
GroupItemCollection.php:6
Bitrix\Im\V2\Notification\Group\GroupItemCollection\getIterator
getIterator()
Определения
GroupItemCollection.php:18
Bitrix\Im\V2\Notification\Group\GroupItemCollection\__construct
__construct(GroupItem ... $items)
Определения
GroupItemCollection.php:13
Bitrix\Im\V2\Notification\Group\GroupItemCollection\getAll
getAll()
Определения
GroupItemCollection.php:36
Bitrix\Im\V2\Notification\Group\GroupItemCollection\count
count()
Определения
GroupItemCollection.php:23
Bitrix\Im\V2\Notification\Group\GroupItemCollection\toRestFormat
toRestFormat()
Определения
GroupItemCollection.php:28
Bitrix\Im\V2\Notification\Group\GroupItem
Определения
GroupItem.php:8
Bitrix\Im\V2\Notification\Group\GroupItem\toRestFormat
toRestFormat()
Определения
GroupItem.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
$items
$items
Определения
template.php:224
bitrix
modules
im
lib
V2
Notification
Group
GroupItemCollection.php
Создано системой
1.14.0