Map::add

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Map
  4. add
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/base/map.php
  • Класс: BitrixCalendarCoreBaseMap
  • Вызов: Map::add
public function add($item, $key = null): self
{
	if ($key === null)
	{
		throw new ArgumentException('you must transfer the key');
	}

	$this->collection[$key] = $item;

	if ($this->generator)
	{
		$this->generator->send($item);
	}

	return $this;
}

Добавить комментарий