2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Abstract class for the formatted transformations plugins
6 * @package PhpMyAdmin-Transformations
7 * @subpackage Formatted
9 if (! defined('PHPMYADMIN')) {
13 /* Get the transformations interface */
14 require_once 'libraries/plugins/TransformationsPlugin.class.php';
17 * Provides common methods for all of the formatted transformations plugins.
21 abstract class FormattedTransformationsPlugin
extends TransformationsPlugin
24 * Gets the transformation description of the specific plugin
28 public static function getInfo()
31 'Displays the contents of the column as-is, without running it'
32 . ' through htmlspecialchars(). That is, the column is assumed'
33 . ' to contain valid HTML.'
38 * Does the actual work of each specific transformations plugin.
40 * @param string $buffer text to be transformed
41 * @param array $options transformation options
42 * @param string $meta meta information
46 public function applyTransformation($buffer, $options = array(), $meta = '')
52 * This method is called when any PluginManager to which the observer
53 * is attached calls PluginManager::notify()
55 * @param SplSubject $subject The PluginManager notifying the observer
61 public function update (SplSubject
$subject)
67 /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
71 * Gets the transformation name of the specific plugin
75 public static function getName()