...Человеческий поиск в разработке...
- Модуль: 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); }