• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/counterprocessor.php
  • Класс: BitrixTasksInternalsCounterCounterProcessor
  • Вызов: CounterProcessor::saveFlag
private function saveFlag(): void
{
	if (!$this->userId)
	{
		return;
	}

	$sql = "
		INSERT INTO ". CounterTable::getTableName() ."
		(`USER_ID`, `TASK_ID`, `GROUP_ID`, `TYPE`, `VALUE`)
		VALUES ({$this->userId}, 0, 0, '". CounterDictionary::COUNTER_FLAG_COUNTED ."', 1)
	";
	Application::getConnection()->query($sql);
}