Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / plugins / transformations / abstract / FormattedTransformationsPlugin.class.php
blobe6bb8d9ba9c6c9c943df8400a9332699852e70e6
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Abstract class for the formatted transformations plugins
6 * @package PhpMyAdmin-Transformations
7 * @subpackage Formatted
8 */
9 if (! defined('PHPMYADMIN')) {
10 exit;
13 /* Get the transformations interface */
14 require_once 'libraries/plugins/TransformationsPlugin.class.php';
16 /**
17 * Provides common methods for all of the formatted transformations plugins.
19 * @package PhpMyAdmin
21 abstract class FormattedTransformationsPlugin extends TransformationsPlugin
23 /**
24 * Gets the transformation description of the specific plugin
26 * @return string
28 public static function getInfo()
30 return __(
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.'
37 /**
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
44 * @return void
46 public function applyTransformation($buffer, $options = array(), $meta = '')
48 return $buffer;
51 /**
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
56 * of an update.
58 * @todo implement
59 * @return void
61 public function update (SplSubject $subject)
67 /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
70 /**
71 * Gets the transformation name of the specific plugin
73 * @return string
75 public static function getName()
77 return "Formatted";