2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * JSON editing with syntax highlighted CodeMirror editor
6 * @package PhpMyAdmin-Transformations
9 if (! defined('PHPMYADMIN')) {
13 /* Get the CodeMirror editor transformations class */
14 require_once 'libraries/plugins/transformations/abstract/'
15 . 'CodeMirrorEditorTransformationPlugin.class.php';
18 * JSON editing with syntax highlighted CodeMirror editor
20 * @package PhpMyAdmin-Transformations
23 class Text_Plain_JsonEditor
extends CodeMirrorEditorTransformationsPlugin
26 * Gets the transformation description of the specific plugin
30 public static function getInfo()
33 'Syntax highlighted CodeMirror editor for JSON.'
38 * Returns the array of scripts (filename) required for plugin
39 * initialization and handling
41 * @return array javascripts to be included
43 public function getScripts()
46 'codemirror/mode/javascript/javascript.js',
47 'transformations/json_editor.js'
51 /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
54 * Gets the transformation name of the specific plugin
58 public static function getName()
64 * Gets the plugin`s MIME type
68 public static function getMIMEType()
74 * Gets the plugin`s MIME subtype
78 public static function getMIMESubtype()