Text_Plain_PreApPend.php 806 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Text Plain Prepend/Append Transformations plugin for phpMyAdmin
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Plugins\Transformations;
  7. use PhpMyAdmin\Plugins\Transformations\Abs\PreApPendTransformationsPlugin;
  8. /**
  9. * Handles the prepend and/or append transformation for text plain.
  10. * Has two options: the text to be prepended and appended (if any, default '')
  11. */
  12. // @codingStandardsIgnoreLine
  13. class Text_Plain_PreApPend extends PreApPendTransformationsPlugin
  14. {
  15. /**
  16. * Gets the plugin`s MIME type
  17. *
  18. * @return string
  19. */
  20. public static function getMIMEType()
  21. {
  22. return 'Text';
  23. }
  24. /**
  25. * Gets the plugin`s MIME subtype
  26. *
  27. * @return string
  28. */
  29. public static function getMIMESubtype()
  30. {
  31. return 'Plain';
  32. }
  33. }