• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/kpimanager.php
  • Класс: BitrixImOpenLinesKpiManager
  • Вызов: KpiManager::stopLineSessionsTimers
static function stopLineSessionsTimers($lineId)
{
	$sessionList = SessionKpiMessagesTable::getList(
		array(
			'select' => array('ID' => 'SESSION_ID'),
			'filter' => array(
				'=SESSION.CONFIG_ID' => $lineId,
				' Session::STATUS_WAIT_CLIENT,
				'=TIME_ANSWER' => null,
				'=TIME_STOP' => null
			),
			'group' => array('SESSION_ID')
		)
	)->fetchAll();

	foreach ($sessionList as $session)
	{
		$kpi = new self($session['ID']);
		$kpi->stopTimer();
	}

	return true;
}