Text_Plain_PreApPend.php 776 B

12345678910111213141516171819202122232425262728293031323334353637
  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. class Text_Plain_PreApPend extends PreApPendTransformationsPlugin
  13. {
  14. /**
  15. * Gets the plugin`s MIME type
  16. *
  17. * @return string
  18. */
  19. public static function getMIMEType()
  20. {
  21. return 'Text';
  22. }
  23. /**
  24. * Gets the plugin`s MIME subtype
  25. *
  26. * @return string
  27. */
  28. public static function getMIMESubtype()
  29. {
  30. return 'Plain';
  31. }
  32. }