Text_Plain_RegexValidation.php 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Text Plain Regex Validation Input Transformations plugin for phpMyAdmin
  5. *
  6. * @package PhpMyAdmin-Transformations
  7. * @subpackage RegexValidation
  8. */
  9. namespace PhpMyAdmin\Plugins\Transformations\Input;
  10. use PhpMyAdmin\Plugins\Transformations\Abs\RegexValidationTransformationsPlugin;
  11. /**
  12. * Handles the input regex validation transformation for text plain.
  13. * Has one option: the regular expression
  14. *
  15. * @package PhpMyAdmin-Transformations
  16. * @subpackage RegexValidation
  17. */
  18. // @codingStandardsIgnoreLine
  19. class Text_Plain_RegexValidation extends RegexValidationTransformationsPlugin
  20. {
  21. /**
  22. * Gets the plugin`s MIME type
  23. *
  24. * @return string
  25. */
  26. public static function getMIMEType()
  27. {
  28. return "Text";
  29. }
  30. /**
  31. * Gets the plugin`s MIME subtype
  32. *
  33. * @return string
  34. */
  35. public static function getMIMESubtype()
  36. {
  37. return "Plain";
  38. }
  39. }