• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/controller/onlyoffice.php
  • Класс: BitrixDiskControllerOnlyOffice
  • Вызов: OnlyOffice::handleDocumentClosedWithoutChanges
protected function handleDocumentClosedWithoutChanges(ModelsDocumentSession $documentSession): void
{
	AddEventToStatFile(
		'disk',
		'disk_oo_doc_closed',
		$documentSession->getExternalHash(),
		ServiceLocator::getInstance()->get('disk.onlyofficeConfiguration')->getServer(),
		'without_changes',
		0
	);

	$this->deactivateDocumentSessions($documentSession->getExternalHash());
	$documentInfo = $documentSession->getInfo();
	if (!$documentInfo)
	{
		return;
	}

	if ($documentInfo->wasForceSaved())
	{
		$this->commentAttachedObjectsOnBackground($documentSession);
	}
}