Text_Plain_PreApPend.php 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Text Plain Prepend/Append Transformations plugin for phpMyAdmin
  5. *
  6. * @package PhpMyAdmin-Transformations
  7. * @subpackage PreApPend
  8. */
  9. declare(strict_types=1);
  10. namespace PhpMyAdmin\Plugins\Transformations;
  11. use PhpMyAdmin\Plugins\Transformations\Abs\PreApPendTransformationsPlugin;
  12. /**
  13. * Handles the prepend and/or append transformation for text plain.
  14. * Has two options: the text to be prepended and appended (if any, default '')
  15. *
  16. * @package PhpMyAdmin-Transformations
  17. * @subpackage PreApPend
  18. */
  19. // @codingStandardsIgnoreLine
  20. class Text_Plain_PreApPend extends PreApPendTransformationsPlugin
  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. }