Text_Plain_Bool2Text.php 758 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Text Plain Bool2Text Transformations plugin for phpMyAdmin
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Plugins\Transformations\Output;
  7. use PhpMyAdmin\Plugins\Transformations\Abs\Bool2TextTransformationsPlugin;
  8. /**
  9. * Handles the Boolean to Text transformation for text plain.
  10. * Has one option: the output format (default 'T/F')
  11. * or 'Y/N'
  12. */
  13. class Text_Plain_Bool2Text extends Bool2TextTransformationsPlugin
  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. }