3declare(strict_types=1);
5namespace Bitrix\Socialnetwork\Collab;
9use Bitrix\Main\Type\Contract\Arrayable;
26 $this->collabs[$collab->getId()] = $collab;
32 return empty($this->collabs);
37 return isset($this->collabs[$offset]);
42 return $this->collabs[$offset] ??
null;
45 public function offsetSet(mixed $offset, mixed $value): void
47 $this->collabs[$offset] = $value;
52 unset($this->collabs[$offset]);
57 return new ArrayIterator($this->collabs);
63 foreach ($this->collabs as $collab)
65 $data[$collab->getId()] = $collab->toArray();
73 foreach ($this->collabs as $collab)
83 return count($this->collabs);
88 $operation = substr(
$name, 0, 3);
89 $subOperation = lcfirst(substr(
$name, -4));
91 if ($operation ===
'get' && $subOperation ===
'list')
93 $property = strtoupper(substr(
$name, 3, -4));
95 return array_column($this->
toArray(), $property);
offsetUnset(mixed $offset)
offsetExists(mixed $offset)
__call(string $name, array $arguments=[])
__construct(Collab ... $collabs)
offsetSet(mixed $offset, mixed $value)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)