phpmyadmin/libraries/plugins/transformations/TransformationTextPlainExternal.class.php
2012-06-07 14:57:14 +03:00

67 lines
1.9 KiB
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Text Plain External Transformations plugin for phpMyAdmin
*
* @package PhpMyAdmin-Transformations
* @subpackage External
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/* Get the external transformations interface */
require_once "libraries/plugins/abstract/ExternalTransformationsPlugin.class.php";
/**
* Handles the external transformation for text plain
*
* @package PhpMyAdmin
*/
class TransformationTextPlainExternal
extends ExternalTransformationsPlugin
{
/**
* Gets the transformation description of the specific plugin
*
* @return string
*/
public function getInfo()
{
return __(
'LINUX ONLY: Launches an external application and feeds it the column'
. ' data via standard input. Returns the standard output of the'
. ' application. The default is Tidy, to pretty-print HTML code.'
. ' For security reasons, you have to manually edit the file'
. ' libraries/plugins/transformations/TransformationTextPlainExternal'
. '.class.php and list the tools you want to make available.'
. ' The first option is then the number of the program you want to'
. ' use and the second option is the parameters for the program.'
. ' The third option, if set to 1, will convert the output using'
. ' htmlspecialchars() (Default 1). The fourth option, if set to 1,'
. ' will prevent wrapping and ensure that the output appears all on'
. ' one line (Default 1).'
);
}
/**
* 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";
}
}
?>