Application_Octetstream_Download.php 733 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Application OctetStream Download Transformations plugin for phpMyAdmin
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Plugins\Transformations\Output;
  7. use PhpMyAdmin\Plugins\Transformations\Abs\DownloadTransformationsPlugin;
  8. /**
  9. * Handles the download transformation for application octetstream
  10. */
  11. class Application_Octetstream_Download extends DownloadTransformationsPlugin
  12. {
  13. /**
  14. * Gets the plugin`s MIME type
  15. *
  16. * @return string
  17. */
  18. public static function getMIMEType()
  19. {
  20. return 'Application';
  21. }
  22. /**
  23. * Gets the plugin`s MIME subtype
  24. *
  25. * @return string
  26. */
  27. public static function getMIMESubtype()
  28. {
  29. return 'OctetStream';
  30. }
  31. }