1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
recepientcollection.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Internals\EventService\Recepients;
4
5use Traversable;
6
7class RecepientCollection implements Collector, \IteratorAggregate, \Countable
8{
10 private array $recipients;
11
12 public function __construct(Recepient ...$recipients)
13 {
14 $this->recipients = $recipients;
15 }
16
17 public function fetch(int $limit, int $offset): RecepientCollection
18 {
19 return new RecepientCollection(...array_slice($this->recipients, $offset, $limit));
20 }
21
22 public function getIterator(): Traversable
23 {
24 return new \ArrayIterator($this->recipients);
25 }
26
27 public function count(): int
28 {
29 return count($this->recipients);
30 }
31}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804