• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/ui/fileattributes.php
  • Класс: BitrixDiskUiFileAttributes
  • Вызов: FileAttributes::getViewerTypeByFile
static function getViewerTypeByFile(array $fileArray)
{
	$type = parent::getViewerTypeByFile($fileArray);
	$type = self::refineType($type, $fileArray);

	if (!self::isSetViewDocumentInClouds())
	{
		return $type;
	}

	if ($type === RendererPdf::getJsType() || self::isAllowedUseClouds($fileArray['CONTENT_TYPE']))
	{
		return self::JS_TYPE;
	}

	return $type;
}