• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/bitrix24disk/legacy/storagecontroller.php
  • Класс: BitrixDiskBitrix24DiskLegacyStorageController
  • Вызов: StorageController::processActionSnapshot
protected function processActionSnapshot()
{
	//disables CBitrix24Cdn::bx24ReplaceStaticDomain(). Safe memory!
	$_REQUEST['disable_cdn'] = true;

	$this->enableIgnoreQuotaError();

	$pageState = $this->getPageStateFromRequest();

	$userStorageId = $this->getUserStorageId();
	$storage = $this->getStorageObject();
	$items = $storage
		->setStorageId($userStorageId)
		->getSnapshot($this->getVersionFromRequest(), $pageState, $nextPageState)
	;

	$paidLicense = $this->isLicensePaid();
	$this->sendJsonResponse(array(
		'settings' => array(
			'lockEnabled' => Configuration::isEnabledObjectLock(),
			'lockAllowed' => $paidLicense,

			'externalLinkEnabled' => Configuration::isEnabledExternalLink(),
			'externalLinkAllowed' => true,
		),
		'quota' => $this->getDiskQuotaData(),
		'snapshot' => $this->adjustSnapshotFormat($items),
		'nextPageState' => $nextPageState? (string)$nextPageState : null,
		'nextPageUrl' => $this->generateNextPageUrl($nextPageState),
	));
}