CCrmActivityDbResult::Fetch

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmActivityDbResult
  4. Fetch
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity_db_result.php
  • Класс: \CCrmActivityDbResult
  • Вызов: CCrmActivityDbResult::Fetch
public function Fetch()
{
	$additionalFields = [
		'LIGHT_COUNTER_AT',
		'IS_INCOMING_CHANNEL'
	];

	if (
		!empty(array_intersect($additionalFields, $this->selectFields))
		&& in_array('ID', $this->selectFields, true)
	)
	{
		return $this->getNextFetchedRecord();
	}

	return $this->fetchOneRecord();
}

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