• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/FileUploader/TempFile.php
  • Класс: BitrixUIFileUploaderTempFile
  • Вызов: TempFile::getBucket
private function getBucket(): ?CCloudStorageBucket
{
	if ($this->bucket !== null)
	{
		return $this->bucket;
	}

	if (!$this->getBucketId() || !Loader::includeModule('clouds'))
	{
		return null;
	}

	$bucket = new CCloudStorageBucket($this->getBucketId());
	if ($bucket->init())
	{
		$this->bucket = $bucket;
	}

	return $this->bucket;
}