Application_Octetstream_Download.class.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Application OctetStream Download Transformations plugin for phpMyAdmin
  5. *
  6. * @package PhpMyAdmin-Transformations
  7. * @subpackage Download
  8. */
  9. if (! defined('PHPMYADMIN')) {
  10. exit;
  11. }
  12. /* Get the download transformations interface */
  13. require_once 'abstract/DownloadTransformationsPlugin.class.php';
  14. /**
  15. * Handles the download transformation for application octetstream
  16. *
  17. * @package PhpMyAdmin-Transformations
  18. * @subpackage Download
  19. */
  20. class Application_Octetstream_Download extends DownloadTransformationsPlugin
  21. {
  22. /**
  23. * Gets the plugin`s MIME type
  24. *
  25. * @return string
  26. */
  27. public static function getMIMEType()
  28. {
  29. return "Application";
  30. }
  31. /**
  32. * Gets the plugin`s MIME subtype
  33. *
  34. * @return string
  35. */
  36. public static function getMIMESubtype()
  37. {
  38. return "OctetStream";
  39. }
  40. }
  41. /**
  42. * Function to call Application_Octetstream_Download::getInfo();
  43. *
  44. * Temporary workaround for bug #3783 :
  45. * Calling a method from a variable class is not possible before PHP 5.3.
  46. *
  47. * This function is called by PMA_getTransformationDescription()
  48. * in libraries/transformations.lib.php using a variable to construct it's name.
  49. * This function then calls the static method.
  50. *
  51. * Don't use this function unless you are affected by the same issue.
  52. * Call the static method directly instead.
  53. *
  54. * @deprecated
  55. * @return string Info about transformation class
  56. */
  57. function Application_Octetstream_Download_getInfo()
  58. {
  59. return Application_Octetstream_Download::getInfo();
  60. }
  61. ?>