Text_Plain_Substring.php 679 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Text Plain Substring Transformations plugin for phpMyAdmin
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Plugins\Transformations;
  7. use PhpMyAdmin\Plugins\Transformations\Abs\SubstringTransformationsPlugin;
  8. /**
  9. * Handles the substring transformation for text plain
  10. */
  11. class Text_Plain_Substring extends SubstringTransformationsPlugin
  12. {
  13. /**
  14. * Gets the plugin`s MIME type
  15. *
  16. * @return string
  17. */
  18. public static function getMIMEType()
  19. {
  20. return 'Text';
  21. }
  22. /**
  23. * Gets the plugin`s MIME subtype
  24. *
  25. * @return string
  26. */
  27. public static function getMIMESubtype()
  28. {
  29. return 'Plain';
  30. }
  31. }