CCrmUserCounter::RefreshLastCalculatedTime

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmUserCounter
  4. RefreshLastCalculatedTime
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/user_counter.php
  • Класс: \CCrmUserCounter
  • Вызов: CCrmUserCounter::RefreshLastCalculatedTime
private function RefreshLastCalculatedTime()
{
	if($this->optionName === '')
	{
		return 0;
	}

	$current = mktime(0, 0, 0, date('n'), date('j'), date('Y'));
	if($this->GetLastCalculatedTime() !== $current)
	{
		$this->lastCalculatedTime = $current;
		CUserOptions::SetOption('crm', $this->optionName, $this->lastCalculatedTime, false, $this->userID);
	}
	return $this->lastCalculatedTime;
}

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