diff options
Diffstat (limited to 'srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output')
15 files changed, 0 insertions, 834 deletions
diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Application_Octetstream_Download.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Application_Octetstream_Download.php deleted file mode 100644 index 2c0795f..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Application_Octetstream_Download.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Application OctetStream Download Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Download - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\DownloadTransformationsPlugin; - -/** - * Handles the download transformation for application octetstream - * - * @package PhpMyAdmin-Transformations - * @subpackage Download - */ -// @codingStandardsIgnoreLine -class Application_Octetstream_Download extends DownloadTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Application"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "OctetStream"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Application_Octetstream_Hex.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Application_Octetstream_Hex.php deleted file mode 100644 index 4ab62eb..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Application_Octetstream_Hex.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Application OctetStream Hex Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Hex - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\HexTransformationsPlugin; - -/** - * Handles the hex transformation for application octetstream - * - * @package PhpMyAdmin-Transformations - * @subpackage Hex - */ -// @codingStandardsIgnoreLine -class Application_Octetstream_Hex extends HexTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Application"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "OctetStream"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_JPEG_Inline.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_JPEG_Inline.php deleted file mode 100644 index 7c69405..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_JPEG_Inline.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Image JPEG Inline Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Inline - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\InlineTransformationsPlugin; - -/** - * Handles the inline transformation for image jpeg - * - * @package PhpMyAdmin-Transformations - * @subpackage Inline - */ -// @codingStandardsIgnoreLine -class Image_JPEG_Inline extends InlineTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Image"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "JPEG"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_JPEG_Link.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_JPEG_Link.php deleted file mode 100644 index f338d57..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_JPEG_Link.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Image JPEG Link Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Link - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\ImageLinkTransformationsPlugin; - -/** - * Handles the link transformation for image jpeg - * - * @package PhpMyAdmin-Transformations - * @subpackage Link - */ -// @codingStandardsIgnoreLine -class Image_JPEG_Link extends ImageLinkTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Image"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "JPEG"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_PNG_Inline.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_PNG_Inline.php deleted file mode 100644 index 5c8e5e5..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Image_PNG_Inline.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Image PNG Inline Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Inline - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\InlineTransformationsPlugin; - -/** - * Handles the inline transformation for image png - * - * @package PhpMyAdmin-Transformations - * @subpackage Inline - */ -// @codingStandardsIgnoreLine -class Image_PNG_Inline extends InlineTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Image"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "PNG"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Octetstream_Sql.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Octetstream_Sql.php deleted file mode 100644 index e6132f0..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Octetstream_Sql.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Blob SQL Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage SQL - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\SQLTransformationsPlugin; - -/** - * Handles the sql transformation for blob data - * - * @package PhpMyAdmin-Transformations - * @subpackage SQL - */ -// @codingStandardsIgnoreLine -class Text_Octetstream_Sql extends SQLTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Octetstream"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Binarytoip.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Binarytoip.php deleted file mode 100644 index ea08c78..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Binarytoip.php +++ /dev/null @@ -1,97 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Handles the binary to IPv4/IPv6 transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage BinaryToIP - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\TransformationsPlugin; -use stdClass; - -/** - * Handles the binary to IPv4/IPv6 transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage BinaryToIP - */ -// @codingStandardsIgnoreLine -class Text_Plain_Binarytoip extends TransformationsPlugin -{ - /** - * Gets the transformation description of the plugin - * - * @return string - */ - public static function getInfo() - { - return __( - 'Converts an Internet network address stored as a binary string' - . ' into a string in Internet standard (IPv4/IPv6) format.' - ); - } - - /** - * Does the actual work of each specific transformations plugin. - * - * @param string $buffer text to be transformed. a binary string containing - * an IP address, as returned from MySQL's INET6_ATON - * function - * @param array $options transformation options - * @param stdClass|null $meta meta information - * - * @return string IP address - */ - public function applyTransformation($buffer, array $options = [], ?stdClass $meta = null) - { - if (0 !== strpos($buffer, '0x')) { - return $buffer; - } - - $ipHex = substr($buffer, 2); - $ipBin = hex2bin($ipHex); - - if (false === $ipBin) { - return $buffer; - } - - return @inet_ntop($ipBin); - } - - - /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ - - /** - * Gets the transformation name of the plugin - * - * @return string - */ - public static function getName() - { - return "Binary To IPv4/IPv6"; - } - - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Bool2Text.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Bool2Text.php deleted file mode 100644 index fcb65a6..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Bool2Text.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain Bool2Text Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Bool2Text - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\Bool2TextTransformationsPlugin; - -/** - * Handles the Boolean to Text transformation for text plain. - * Has one option: the output format (default 'T/F') - * or 'Y/N' - * - * @package PhpMyAdmin-Transformations - * @subpackage Bool2Text - */ -// @codingStandardsIgnoreLine -class Text_Plain_Bool2Text extends Bool2TextTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Dateformat.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Dateformat.php deleted file mode 100644 index 1d0ae78..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Dateformat.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain Date Format Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage DateFormat - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\DateFormatTransformationsPlugin; - -/** - * Handles the date format transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage DateFormat - */ -// @codingStandardsIgnoreLine -class Text_Plain_Dateformat extends DateFormatTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_External.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_External.php deleted file mode 100644 index 8e5a36d..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_External.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain External Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage External - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\ExternalTransformationsPlugin; - -/** - * Handles the external transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage External - */ -// @codingStandardsIgnoreLine -class Text_Plain_External extends ExternalTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Formatted.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Formatted.php deleted file mode 100644 index 6eeffba..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Formatted.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain Formatted Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage Formatted - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\FormattedTransformationsPlugin; - -/** - * Handles the formatted transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage Formatted - */ -// @codingStandardsIgnoreLine -class Text_Plain_Formatted extends FormattedTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Imagelink.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Imagelink.php deleted file mode 100644 index fcad39b..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Imagelink.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain Image Link Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage ImageLink - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\TextImageLinkTransformationsPlugin; - -/** - * Handles the image link transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage ImageLink - */ -// @codingStandardsIgnoreLine -class Text_Plain_Imagelink extends TextImageLinkTransformationsPlugin -{ - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Json.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Json.php deleted file mode 100644 index ce06610..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Json.php +++ /dev/null @@ -1,101 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain JSON Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage SQL - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\TransformationsPlugin; -use PhpMyAdmin\Response; -use stdClass; - -/** - * Handles the json transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage JSON - */ -// @codingStandardsIgnoreLine -class Text_Plain_Json extends TransformationsPlugin -{ - /** - * No-arg constructor - */ - public function __construct() - { - if (! empty($GLOBALS['cfg']['CodemirrorEnable'])) { - $response = Response::getInstance(); - $scripts = $response->getHeader() - ->getScripts(); - $scripts->addFile('vendor/codemirror/lib/codemirror.js'); - $scripts->addFile('vendor/codemirror/mode/javascript/javascript.js'); - $scripts->addFile('vendor/codemirror/addon/runmode/runmode.js'); - $scripts->addFile('transformations/json.js'); - } - } - - /** - * Gets the transformation description of the specific plugin - * - * @return string - */ - public static function getInfo() - { - return __( - 'Formats text as JSON with syntax highlighting.' - ); - } - - /** - * Does the actual work of each specific transformations plugin. - * - * @param string $buffer text to be transformed - * @param array $options transformation options - * @param stdClass|null $meta meta information - * - * @return string - */ - public function applyTransformation($buffer, array $options = [], ?stdClass $meta = null) - { - return '<code class="json"><pre>' . "\n" - . htmlspecialchars($buffer) . "\n" - . '</pre></code>'; - } - - /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ - - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } - - /** - * Gets the transformation name of the specific plugin - * - * @return string - */ - public static function getName() - { - return "JSON"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Sql.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Sql.php deleted file mode 100644 index 2c39e03..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Sql.php +++ /dev/null @@ -1,60 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain SQL Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage SQL - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\Transformations\Abs\SQLTransformationsPlugin; -use PhpMyAdmin\Response; - -/** - * Handles the sql transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage SQL - */ -// @codingStandardsIgnoreLine -class Text_Plain_Sql extends SQLTransformationsPlugin -{ - /** - * No-arg constructor - */ - public function __construct() - { - if (! empty($GLOBALS['cfg']['CodemirrorEnable'])) { - $response = Response::getInstance(); - $scripts = $response->getHeader() - ->getScripts(); - $scripts->addFile('vendor/codemirror/lib/codemirror.js'); - $scripts->addFile('vendor/codemirror/mode/sql/sql.js'); - $scripts->addFile('vendor/codemirror/addon/runmode/runmode.js'); - $scripts->addFile('functions.js'); - } - } - - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Xml.php b/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Xml.php deleted file mode 100644 index fc06744..0000000 --- a/srcs/phpmyadmin/libraries/classes/Plugins/Transformations/Output/Text_Plain_Xml.php +++ /dev/null @@ -1,101 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Text Plain XML Transformations plugin for phpMyAdmin - * - * @package PhpMyAdmin-Transformations - * @subpackage SQL - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Plugins\Transformations\Output; - -use PhpMyAdmin\Plugins\TransformationsPlugin; -use PhpMyAdmin\Response; -use stdClass; - -/** - * Handles the XML transformation for text plain - * - * @package PhpMyAdmin-Transformations - * @subpackage XML - */ -// @codingStandardsIgnoreLine -class Text_Plain_Xml extends TransformationsPlugin -{ - /** - * No-arg constructor - */ - public function __construct() - { - if (! empty($GLOBALS['cfg']['CodemirrorEnable'])) { - $response = Response::getInstance(); - $scripts = $response->getHeader() - ->getScripts(); - $scripts->addFile('vendor/codemirror/lib/codemirror.js'); - $scripts->addFile('vendor/codemirror/mode/xml/xml.js'); - $scripts->addFile('vendor/codemirror/addon/runmode/runmode.js'); - $scripts->addFile('transformations/xml.js'); - } - } - - /** - * Gets the transformation description of the specific plugin - * - * @return string - */ - public static function getInfo() - { - return __( - 'Formats text as XML with syntax highlighting.' - ); - } - - /** - * Does the actual work of each specific transformations plugin. - * - * @param string $buffer text to be transformed - * @param array $options transformation options - * @param stdClass|null $meta meta information - * - * @return string - */ - public function applyTransformation($buffer, array $options = [], ?stdClass $meta = null) - { - return '<code class="xml"><pre>' . "\n" - . htmlspecialchars($buffer) . "\n" - . '</pre></code>'; - } - - /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ - - /** - * Gets the plugin`s MIME type - * - * @return string - */ - public static function getMIMEType() - { - return "Text"; - } - - /** - * Gets the plugin`s MIME subtype - * - * @return string - */ - public static function getMIMESubtype() - { - return "Plain"; - } - - /** - * Gets the transformation name of the specific plugin - * - * @return string - */ - public static function getName() - { - return "XML"; - } -} |
