CCrmActivityDbResult::getAllRecords

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmActivityDbResult
  4. getAllRecords
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity_db_result.php
  • Класс: \CCrmActivityDbResult
  • Вызов: CCrmActivityDbResult::getAllRecords
private function getAllRecords()
{
	if (is_array($this->records))
	{
		return $this->records;
	}

	$this->records = [];
	$this->currentRecordsIndex = 0;
	while ($record = $this->fetchOneRecord())
	{
		$this->records[$record['ID']] = $record;
	}
	if (empty($this->records))
	{
		return $this->records;
	}

	if (in_array('IS_INCOMING_CHANNEL', $this->selectFields, true))
	{
		$this->records = $this->appendIncomingChannelFieldToRecords($this->records);
	}

	if (in_array('LIGHT_COUNTER_AT', $this->selectFields, true))
	{
		$this->records = $this->appendLightTimeFieldToRecords($this->records);
	}

	return $this->records;
}

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