• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/queue.php
  • Класс: BitrixVoximplantQueue
  • Вызов: Queue::touchUser
public function touchUser($userId)
{
	$userId = (int)$userId;

	$row = QueueUserTable::getList(array(
		'filter' => array(
			'=QUEUE_ID' => $this->id,
			'=USER_ID' => $userId
		)
	))->fetch();

	if($row)
	{
		$recordId = $row['ID'];

		QueueUserTable::update($recordId, array(
			'LAST_ACTIVITY_DATE' => new DateTime()
		));
		return true;
	}
	return false;
}