• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/controller/export.php
  • Класс: BitrixMainControllerExport
  • Вызов: Export::getFileType
protected function getFileType()
{
	if ($this->exportType === self::EXPORT_TYPE_CSV)
	{
		$fileType = 'application/csv';
	}
	elseif ($this->exportType === self::EXPORT_TYPE_EXCEL)
	{
		$fileType = 'application/vnd.ms-excel';
	}

	return $fileType;
}