CompanyGrowthStatisticEntry::get

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CompanyGrowthStatisticEntry
  4. get
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/statistics/companygrowthstatisticentry.php
  • Класс: Bitrix\Crm\Statistics\CompanyGrowthStatisticEntry
  • Вызов: CompanyGrowthStatisticEntry::get
static function get($ownerID, Date $date)
{
	if(!is_int($ownerID))
	{
		$ownerID = (int)$ownerID;
	}

	if($ownerID <= 0)
	{
		throw new Main\ArgumentException('Owner ID must be greater than zero.', 'ownerID');
	}

	$query = new Query(CompanyGrowthStatisticsTable::getEntity());
	$query->addSelect('*');
	$query->addFilter('=OWNER_ID', $ownerID);
	$query->addFilter('=CREATED_DATE', $date);

	$dbResult = $query->exec();
	$result = $dbResult->fetch();
	return is_array($result) ? $result : null;
}

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