2 // vim: expandtab sw=4 ts=4 sts=4:
4 * This file contains the basic structure for a specific MIME Type and Subtype
5 * transformations class.
6 * For instructions, read the documentation
8 * @package PhpMyAdmin-Transformations
9 * @subpackage [TransformationName]
11 if (! defined('PHPMYADMIN')) {
15 /* Get the [TransformationName] transformations interface */
16 require_once 'abstract/[TransformationName]TransformationsPlugin.class.php';
19 * Handles the [TransformationName] transformation for [MIMEType] - [MIMESubtype]
23 class [MIMEType]_[MIMESubtype]_[TransformationName]
24 extends [TransformationName]TransformationsPlugin
27 * Gets the plugin`s MIME type
31 public static function getMIMEType()
37 * Gets the plugin`s MIME subtype
41 public static function getMIMESubtype()
43 return "[MIMESubtype]";
48 * Function to call [MIMEType]_[MIMESubtype]_[TransformationName]::getInfo();
50 * Temporary workaround for bug #3783 :
51 * Calling a method from a variable class is not possible before PHP 5.3.
53 * This function is called by PMA_getTransformationDescription()
54 * in libraries/transformations.lib.php using a variable to construct it's name.
55 * This function then calls the static method.
57 * Don't use this function unless you are affected by the same issue.
58 * Call the static method directly instead.
61 * @return string Info about transformation class
64 function [MIMEType]_[MIMESubtype]_[TransformationName]_getInfo()
66 return [MIMEType]_[MIMESubtype]_[TransformationName]::getInfo();