EntityCounter::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityCounter
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycounter.php
  • Класс: Bitrix\Crm\Counter\EntityCounter
  • Вызов: EntityCounter::__construct
public function __construct($entityTypeID, $typeID, $userID = 0, array $extras = null)
{
	$this->counterSettings = CounterSettings::getInstance();

	$this->setEntityTypeID($entityTypeID);
	$this->setTypeID($typeID);
	$this->setUserID($userID > 0 ? $userID : \CCrmSecurityHelper::GetCurrentUserID());
	$this->setExtras($extras !== null ? $extras : array());
	$this->code = $this->resolveCode();

	$this->calculatedTime = new CalculatedTime($this->userID, $this->code);
}

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