58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* Text Plain Image Link Transformations plugin for phpMyAdmin
|
|
*
|
|
* @package PhpMyAdmin-Transformations
|
|
* @subpackage Image Link
|
|
*/
|
|
if (! defined('PHPMYADMIN')) {
|
|
exit;
|
|
}
|
|
|
|
/* Get the image link transformations interface */
|
|
require_once "libraries/plugins/abstract/ImageLinkTransformationsPlugin.class.php";
|
|
|
|
/**
|
|
* Handles the image link transformation for text plain
|
|
*
|
|
* @package PhpMyAdmin
|
|
*/
|
|
class TransformationTextPlainImageLink
|
|
extends ImageLinkTransformationsPlugin
|
|
{
|
|
/**
|
|
* Gets the transformation description of the specific plugin
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getInfo()
|
|
{
|
|
return __(
|
|
'Displays an image and a link; the column contains the filename. The'
|
|
. ' first option is a URL prefix like "http://www.example.com/". The'
|
|
. ' second and third options are the width and the height in pixels.'
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Gets the plugin`s MIME type
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMIMEType()
|
|
{
|
|
return "Text";
|
|
}
|
|
|
|
/**
|
|
* Gets the plugin`s MIME subtype
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getMIMESubtype()
|
|
{
|
|
return "Plain";
|
|
}
|
|
}
|
|
?>
|