• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/mappers/event.php
  • Класс: BitrixCalendarCoreMappersEvent
  • Вызов: Event::getByArray
public function getByArray(array $fields)
{
	if ($this->getCacheMap()->has($fields['ID']))
	{
		return $this->getCacheMap()->getItem($fields['ID']);
	}

	$entity = $this->convertFromArray($fields);
	$this->getCacheMap()->add($entity, $entity->getId());

	return $entity;
}