Text_Plain_RegexValidation.php 772 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Text Plain Regex Validation Input Transformations plugin for phpMyAdmin
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Plugins\Transformations\Input;
  7. use PhpMyAdmin\Plugins\Transformations\Abs\RegexValidationTransformationsPlugin;
  8. /**
  9. * Handles the input regex validation transformation for text plain.
  10. * Has one option: the regular expression
  11. */
  12. class Text_Plain_RegexValidation extends RegexValidationTransformationsPlugin
  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. }