TEMPLATE 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. // vim: expandtab sw=4 ts=4 sts=4:
  3. /**
  4. * This file contains the basic structure for a specific MIME Type and Subtype
  5. * transformations class.
  6. * For instructions, read the documentation
  7. *
  8. * @package PhpMyAdmin-Transformations
  9. * @subpackage [TransformationName]
  10. */
  11. if (! defined('PHPMYADMIN')) {
  12. exit;
  13. }
  14. /* Get the [TransformationName] transformations interface */
  15. require_once 'abstract/[TransformationName]TransformationsPlugin.class.php';
  16. /**
  17. * Handles the [TransformationName] transformation for [MIMEType] - [MIMESubtype]
  18. *
  19. * @package PhpMyAdmin
  20. */
  21. class [MIMEType]_[MIMESubtype]_[TransformationName]
  22. extends [TransformationName]TransformationsPlugin
  23. {
  24. /**
  25. * Gets the plugin`s MIME type
  26. *
  27. * @return string
  28. */
  29. public static function getMIMEType()
  30. {
  31. return "[MIMEType]";
  32. }
  33. /**
  34. * Gets the plugin`s MIME subtype
  35. *
  36. * @return string
  37. */
  38. public static function getMIMESubtype()
  39. {
  40. return "[MIMESubtype]";
  41. }
  42. }
  43. /**
  44. * Function to call [MIMEType]_[MIMESubtype]_[TransformationName]::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 [MIMEType]_[MIMESubtype]_[TransformationName]_getInfo()
  60. {
  61. return [MIMEType]_[MIMESubtype]_[TransformationName]::getInfo();
  62. }
  63. ?>