Text_Plain_External.class.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Text Plain External Transformations plugin for phpMyAdmin
  5. *
  6. * @package PhpMyAdmin-Transformations
  7. * @subpackage External
  8. */
  9. if (! defined('PHPMYADMIN')) {
  10. exit;
  11. }
  12. /* Get the external transformations interface */
  13. require_once 'abstract/ExternalTransformationsPlugin.class.php';
  14. /**
  15. * Handles the external transformation for text plain
  16. *
  17. * @package PhpMyAdmin-Transformations
  18. * @subpackage External
  19. */
  20. class Text_Plain_External extends ExternalTransformationsPlugin
  21. {
  22. /**
  23. * Gets the plugin`s MIME type
  24. *
  25. * @return string
  26. */
  27. public static function getMIMEType()
  28. {
  29. return "Text";
  30. }
  31. /**
  32. * Gets the plugin`s MIME subtype
  33. *
  34. * @return string
  35. */
  36. public static function getMIMESubtype()
  37. {
  38. return "Plain";
  39. }
  40. }
  41. /**
  42. * Function to call Text_Plain_External::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 Text_Plain_External_getInfo()
  58. {
  59. return Text_Plain_External::getInfo();
  60. }
  61. ?>