Text_Plain_Bool2text.class.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Text Plain Bool2Text Transformations plugin for phpMyAdmin
  5. *
  6. * @package PhpMyAdmin-Transformations
  7. * @subpackage Bool2Text
  8. */
  9. if (! defined('PHPMYADMIN')) {
  10. exit;
  11. }
  12. /* Get the Bool2Text transformations interface */
  13. require_once 'abstract/Bool2TextTransformationsPlugin.class.php';
  14. /**
  15. * Handles the Boolean to Text transformation for text plain.
  16. * Has one option: the output format (default 'T/F')
  17. * or 'Y/N'
  18. *
  19. * @package PhpMyAdmin-Transformations
  20. * @subpackage Bool2Text
  21. */
  22. class Text_Plain_Bool2Text extends Bool2TextTransformationsPlugin
  23. {
  24. /**
  25. * Gets the plugin`s MIME type
  26. *
  27. * @return string
  28. */
  29. public static function getMIMEType()
  30. {
  31. return "Text";
  32. }
  33. /**
  34. * Gets the plugin`s MIME subtype
  35. *
  36. * @return string
  37. */
  38. public static function getMIMESubtype()
  39. {
  40. return "Plain";
  41. }
  42. }
  43. /**
  44. * Function to call Text_Plain_Bool2Text::getInfo();
  45. *
  46. * Temporary workaround for bug #3783 :
  47. * Calling a method from a variable class is not possible before PHP 5.3.
  48. *
  49. * This function is called by PMA_getTransformationDescription()
  50. * in libraries/transformations.lib.php using a variable to construct it's name.
  51. * This function then calls the static method.
  52. *
  53. * Don't use this function unless you are affected by the same issue.
  54. * Call the static method directly instead.
  55. *
  56. * @deprecated
  57. * @return string Info about transformation class
  58. */
  59. function Text_Plain_Bool2Text_getInfo()
  60. {
  61. return Text_Plain_Bool2Text::getInfo();
  62. }
  63. ?>