CCrmUserCounter::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmUserCounter
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/user_counter.php
  • Класс: \CCrmUserCounter
  • Вызов: CCrmUserCounter::__construct
function __construct($userID, $typeID, array $params = null)
{
	if(!is_int($userID))
	{
		$userID = (int)$userID;
	}
	$this->userID = $userID;

	if(!is_int($typeID))
	{
		$typeID = (int)$typeID;
	}
	$this->typeID = ($typeID);

	if($params !== null)
	{
		$this->params = $params;
	}

	$this->code = self::ResolveCode($this->typeID, $this->params);
	$this->optionName = $this->code !== '' ? $this->code.'_last_calc_'.SITE_ID : '';
}

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