4namespace Bitrix\Calendar\ICal\Builder;
7use Bitrix\Calendar\SerializeObject;
22 private array $collection;
30 return new self($collection);
40 if (!$this->checkCollection($collection))
42 throw new \InvalidArgumentException(
'The collection contains elements of the wrong class. You need to pass a collection of objects Bitrix\\Calendar\\ICal\\Builder\\Attendee');
45 $this->collection = $collection;
53 if (empty($this->collection))
59 foreach ($this->collection as $attendee)
61 if (!empty($attendee->getFullName()))
63 $result[] = $attendee->getFullName();
76 $this->collection[] = $attendee;
86 return new ArrayIterator($this->collection);
94 return count($this->collection);
101 private function checkCollection(?
array $collection): bool
103 if (is_null($collection))
108 $attendee = array_filter($collection,
static function ($attendee) {
109 return !($attendee instanceof
Attendee);
112 return empty($attendee);
__construct(array $collection=[])
static createInstance(array $collection=[])
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"