UPDATE 4.4.0.0
[phpmyadmin.git] / libraries / plugins / transformations / input / Text_Plain_XmlEditor.class.php
blob6790c57fef5e3e16fe15a2aef333e1f286f05720
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * XML (and HTML) editing with syntax highlighted CodeMirror editor
6 * @package PhpMyAdmin-Transformations
7 * @subpackage XML
8 */
9 if (! defined('PHPMYADMIN')) {
10 exit;
13 /* Get the CodeMirror editor transformations class */
14 require_once 'libraries/plugins/transformations/abstract/'
15 . 'CodeMirrorEditorTransformationPlugin.class.php';
17 /**
18 * XML (and HTML) editing with syntax highlighted CodeMirror editor
20 * @package PhpMyAdmin-Transformations
21 * @subpackage XML
23 class Text_Plain_XmlEditor extends CodeMirrorEditorTransformationsPlugin
25 /**
26 * Gets the transformation description of the specific plugin
28 * @return string
30 public static function getInfo()
32 return __(
33 'Syntax highlighted CodeMirror editor for XML (and HTML).'
37 /**
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()
45 return array(
46 'codemirror/mode/xml/xml.js',
47 'transformations/xml_editor.js'
51 /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
53 /**
54 * Gets the transformation name of the specific plugin
56 * @return string
58 public static function getName()
60 return "XML";
63 /**
64 * Gets the plugin`s MIME type
66 * @return string
68 public static function getMIMEType()
70 return "Text";
73 /**
74 * Gets the plugin`s MIME subtype
76 * @return string
78 public static function getMIMESubtype()
80 return "Plain";