3namespace Bitrix\Socialnetwork\Space\Toolbar\Composition;
6use Bitrix\Main\Type\Contract\Arrayable;
12 private array $items = [];
16 $collection =
new static();
17 array_map(
static function (
string $moduleId) use ($collection):
void {
18 $item = AbstractCompositionItem::createFromModuleId(
$moduleId);
19 !is_null($item) && $collection->addItem($item);
27 return new ArrayIterator($this->items);
32 if (!$this->
has($item))
34 $this->items[] = $item;
42 foreach ($this->items as
$key => $item)
46 unset($this->items[
$key]);
65 foreach ($this->items as $item)
67 $item->hasBoundItem() && $this->
addItem($item->getBoundItem());
75 foreach ($this->items as $item)
77 $item->isHidden() && $this->
remove($item->getModuleId());
86 foreach ($this->items as $item)
88 $moduleIds[] = $item->getModuleId();
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key