Mapper::getMap

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Mapper
  4. getMap
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/mappers/mapper.php
  • Класс: BitrixCalendarCoreMappersMapper
  • Вызов: Mapper::getMap
public function getMap($filter, int $limit = null, array $order = null): CoreBaseMap
{
	$className = $this->getMapClass();
	$result = new $className();
	$params = ['filter' => $filter];
	if ($limit)
	{
		$params['limit'] = $limit;
	}
	if ($order)
	{
		$params['order'] = $order;
	}
	$params['select'] = self::DEFAULT_SELECT;

	$managerResult = $this->getDataManagerResult($params);
	while ($row = $managerResult->fetchObject())
	{
		$link = $this->getByEntityObject($row);
		if ($link !== null)
		{
			$result->add($link, $link->getId());
		}
	}

	return $result;
}

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