Text_Plain_Append.class.php 1.5 KB

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