]> git.joonet.de Git - adminer.git/commitdiff
Plugins: Extend Adminer\Plugin
authorJakub Vrana <jakub@vrana.cz>
Mon, 7 Apr 2025 14:32:57 +0000 (16:32 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 7 Apr 2025 15:02:16 +0000 (17:02 +0200)
44 files changed:
plugins/adminer.js.php
plugins/backward-keys.php
plugins/before-unload.php
plugins/codemirror.php
plugins/dark-switcher.php
plugins/database-hide.php
plugins/designs.php
plugins/dump-alter.php
plugins/dump-bz2.php
plugins/dump-date.php
plugins/dump-json.php
plugins/dump-php.php
plugins/dump-xml.php
plugins/dump-zip.php
plugins/edit-calendar.php
plugins/edit-foreign.php
plugins/edit-textarea.php
plugins/editor-setup.php
plugins/editor-views.php
plugins/email-table.php
plugins/enum-option.php
plugins/file-upload.php
plugins/foreign-system.php
plugins/frames.php
plugins/json-column.php
plugins/login-ip.php
plugins/login-otp.php
plugins/login-password-less.php
plugins/login-servers.php
plugins/login-ssl.php
plugins/login-table.php
plugins/master-slave.php
plugins/monaco.php
plugins/pretty-json-column.php
plugins/prism.php
plugins/slugify.php
plugins/sql-log.php
plugins/table-indexes-structure.php
plugins/table-structure.php
plugins/tables-filter.php
plugins/tinymce.php
plugins/translation.php
plugins/version-github.php
plugins/version-noverify.php

index a89ccae590784df7d87f6e7cd2fdedc62e8ffb1b..0628918d49406e116a2ffb280af9f72620144df2 100644 (file)
@@ -8,7 +8,7 @@
  * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
  */
-class AdminerDotJs {
+class AdminerDotJs extends Adminer\Plugin {
        const FILENAME = "adminer.js";
 
        function head($dark = null) {
index 06fc33a6bb113623865edeb985bc41501cd71509..491ce3d5c76b3b83a49891e866caae7a289cc946 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerBackwardKeys {
+class AdminerBackwardKeys extends Adminer\Plugin {
        // this is copy-pasted from Adminer Editor
 
        function backwardKeys($table, $tableName) {
index 5c37ca31164a212b36e532c3a45d2a9b826b0ef0..68e14774625ea38d7ec658c2dfbaee143d48afce 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerBeforeUnload {
+class AdminerBeforeUnload extends Adminer\Plugin {
 
        function head($dark = null) {
                ?>
index cdbc57b38505663aaddeb0aae803d2a89c3170a2..1d476fc87116bffcabdd270283e32642732c16b5 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 
-/** Use Codemirror 5 for syntax highlighting and SQL <textarea> including type-ahead of keywords and tables
+/** Use CodeMirror 5 for syntax highlighting and <textarea> including type-ahead of keywords and tables
 * @link https://codemirror.net/5/
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerCodemirror {
+class AdminerCodemirror extends Adminer\Plugin {
        private $root;
        private $minified;
 
index ea181999b725f5a1eaa9dbf34c775ecef88926dc..34a44f07c451818a153b6ebbf3dd432cf675cdc1 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDarkSwitcher {
+class AdminerDarkSwitcher extends Adminer\Plugin {
 
        function head($dark = null) {
                ?>
index 5d190a45e7f0b5ccc8e3aa0fa1b78a5aea2181cd..e3d0bb719dddd8f730924443f1e8ee7992e61724 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDatabaseHide {
+class AdminerDatabaseHide extends Adminer\Plugin {
        protected $disabled;
 
        /**
index dffe26fa77a58b0701b4543c7a8990cbb4b502bb..f052cc5a59bacbd0ce24bcbb4a6b2fb77b2b843b 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDesigns {
+class AdminerDesigns extends Adminer\Plugin {
        protected $designs;
 
        /**
index f1c78b3ab39a5eba24f44ce064496677686307c2..7b975169f00c64209ec0a3efc75e9027d5b496df 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpAlter {
+class AdminerDumpAlter extends Adminer\Plugin {
 
        function dumpFormat() {
                if (Adminer\DRIVER == 'server') {
index 47351abcff431720b822077d73915796b2b66608..6ff7a301bf2171dad3c5ca9084be1fae2557fdd9 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpBz2 {
+class AdminerDumpBz2 extends Adminer\Plugin {
        protected $filename, $fp;
 
        function dumpOutput() {
index 3983109c7cec537b18f148f7f55fb61333d9ea17..dfa0c58b844d490a57db87e5a5d73aa8e6219944 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpDate {
+class AdminerDumpDate extends Adminer\Plugin {
 
        function dumpFilename($identifier) {
                return Adminer\friendly_url(($identifier != "" ? $identifier : (Adminer\SERVER != "" ? Adminer\SERVER : "localhost")) . "-" . Adminer\get_val("SELECT NOW()"));
index 84fc9de74d09c98e900343120eb6ad27d9cd2d6a..5d0b134378920048c4c0eb290506bdeed2793249 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpJson {
+class AdminerDumpJson extends Adminer\Plugin {
        protected $database = false;
 
        function dumpFormat() {
index 8bf1ffd668c31cf0e00f83a2c2321903fa54b85a..c0e610b62e2248f9ddb75b7a7ec0c567194a741c 100644 (file)
@@ -5,7 +5,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpPhp {
+class AdminerDumpPhp extends Adminer\Plugin {
        protected $output = array();
 
        function dumpFormat() {
index c473ef7250b83aaf838c5e8443b32b00ce3bdee3..8618d52dd8b5785a7b2c0f3475aa714c81e42d63 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpXml {
+class AdminerDumpXml extends Adminer\Plugin {
        protected $database = false;
 
        function dumpFormat() {
index ac450aa209dd49048a60a6441f60a28659cdf1f9..ca44d1067f6d586f52656828af953f22e5fd56cf 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerDumpZip {
+class AdminerDumpZip extends Adminer\Plugin {
        protected $filename, $data;
 
        function dumpOutput() {
index af6b45771ca95adfacdd169123931a48a301e4d8..8e973796c8c5da60cc17e2f205eb4a63217c2caa 100644 (file)
@@ -8,7 +8,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEditCalendar {
+class AdminerEditCalendar extends Adminer\Plugin {
        protected $prepend, $langPath;
 
        /**
index df8ed64d04f93386f09658082ae2e51ee2e6adf2..72f26e721618bcb15ea37129763cefffac0a65f8 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEditForeign {
+class AdminerEditForeign extends Adminer\Plugin {
        protected $limit;
 
        function __construct($limit = 0) {
index 9cceeb4ec0d2514011b4882eb73d1cb53132045c..5c1f82f8d7d2df55162c55889ca99d362fe5d566 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEditTextarea {
+class AdminerEditTextarea extends Adminer\Plugin {
 
        function editInput($table, $field, $attrs, $value) {
                if (preg_match('~char~', $field["type"])) {
index 6191e97080c6aad1b8278f2135107eb3436e4c50..62b13cc462c653c7739c9ebe9ff76ac81060fad1 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEditorSetup {
+class AdminerEditorSetup extends Adminer\Plugin {
        private $driver;
        private $server;
        private $database;
index 2570b528d78af8912150eb5e6f5f63daf4f29e10..fa43e5b5ed8341b47e5fddee519e25271cb81254 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEditorViews {
+class AdminerEditorViews extends Adminer\Plugin {
 
        function tableName($tableStatus) {
                return Adminer\h($tableStatus["Comment"] != "" ? $tableStatus["Comment"] : $tableStatus["Name"]);
index c6e22b986641fbf351f496d8a5dec7a9bba309e6..b86aa54eff3f7eab3f5ea2f6d40661d6c2ad0be1 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEmailTable {
+class AdminerEmailTable extends Adminer\Plugin {
        protected $table, $id, $title, $subject, $message;
 
        /**
index 418561b164f9c14e856492de6d8cbe0aed1534c9..3f36277c634369d57d4822c24edade3ea98ec9bc 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerEnumOption {
+class AdminerEnumOption extends Adminer\Plugin {
 
        function editInput($table, $field, $attrs, $value) {
                if ($field["type"] == "enum") {
index bffcfbcdbeebc4ce165ed20d64481d38df7f1f44..17b1c04f5b4406b780e5a0e3697b9a50a507a8b1 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerFileUpload {
+class AdminerFileUpload extends Adminer\Plugin {
        protected $uploadPath, $displayPath, $extensions;
 
        /**
index 8cc99af6b96da0bd426d075b460e91f473ad0416..f4df59163f824c47721bf0c9b9ac9564adbc1495 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-/** Link system tables (in mysql and information_schema databases) by foreign keys
+/** Link system tables (in "mysql" and "information_schema" databases) by foreign keys
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerForeignSystem {
+class AdminerForeignSystem extends Adminer\Plugin {
 
        function foreignKeys($table) {
                if (Adminer\DRIVER == "server" && Adminer\DB == "mysql") {
index 5828b08934c5bd0df6e948c503a06e5d1c3275ae..9d1568a7613eef22c91c2aa65a47a08beab90959 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-/** Allow using Adminer inside a frame (disables ClickJacking protection)
+/** Allow using Adminer inside a frame
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerFrames {
+class AdminerFrames extends Adminer\Plugin {
        protected $sameOrigin;
 
        /**
index c373a2bd20bc0a2f99214b35b7c0b45d1bf85a47..381c790b75f89b7922e504a7cd3d10879f342f5f 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerJsonColumn {
+class AdminerJsonColumn extends Adminer\Plugin {
        private function testJson($value) {
                if ((substr($value, 0, 1) == '{' || substr($value, 0, 1) == '[') && ($json = json_decode($value, true))) {
                        return $json;
index 90f997a60937277916c5bf9dd663f380ecba7d5c..b90e74012233ceaba8d7da247566762db360f659 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerLoginIp {
+class AdminerLoginIp extends Adminer\Plugin {
        protected $ips, $forwarded_for;
 
        /** Set allowed IP addresses
index 347f4a5d221e56389ba9df17576282d1d8f57b4e..ddacd9e229e0f56621e3f8388c19d9120d7c73ab 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerLoginOtp {
+class AdminerLoginOtp extends Adminer\Plugin {
        protected $secret;
 
        /**
index dad6f1222d7dd18e032989a43b54f4ec57487951..ce263662f6f981c5262d801f1fef890a11c8ea41 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-/** Enable login for password-less database
+/** Enable login without password
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerLoginPasswordLess {
+class AdminerLoginPasswordLess extends Adminer\Plugin {
        protected $password_hash;
 
        /** Set allowed password
index be54d59c85fb7691e6e32c68ad80e6f9a67546af..22ed88fd7a3afa5622715f5ba0a894c79a252d58 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerLoginServers {
+class AdminerLoginServers extends Adminer\Plugin {
        protected $servers;
 
        /** Set supported servers
index 6cbfe299a6b3c1de352fd872723c15875719c63a..565acbd0994a50ea6e0ad81ad8d23fc3d481d80c 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerLoginSsl {
+class AdminerLoginSsl extends Adminer\Plugin {
        protected $ssl;
 
        /**
index 608516906ec3f1884234006e591741941b6059a1..d2137969a0129938f04768a65482313359af6157 100644 (file)
@@ -9,13 +9,13 @@ CREATE TABLE login (
 );
 */
 
-/** Authenticate a user from the login table
+/** Authenticate a user from the "login" table
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerLoginTable {
+class AdminerLoginTable extends Adminer\Plugin {
        protected $database;
 
        /** Set database of login table */
index f7520520aa41d6990a038dd958823110b80a4cb9..e72017326835965b29f59b1af64691b596f9a489 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerMasterSlave {
+class AdminerMasterSlave extends Adminer\Plugin {
        private $masters = array();
 
        /**
index 7a9f86d09ef4224cec06d1b65c317d587070c8c3..c156d5e41ac13726e8a51427d939e4027fb363cd 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerMonaco {
+class AdminerMonaco extends Adminer\Plugin {
        private $root;
 
        function __construct($root = "https://cdn.jsdelivr.net/npm/monaco-editor@0.52/min/vs") {
index 92489cbf7605e79d26dd7bd3248dfd1f87a8df7d..e97125b8499951545dca604aef5c4eb482c3bb74 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerPrettyJsonColumn {
+class AdminerPrettyJsonColumn extends Adminer\Plugin {
        private function testJson($value) {
                if ((substr($value, 0, 1) == '{' || substr($value, 0, 1) == '[') && ($json = json_decode($value, true))) {
                        return $json;
index b98c499134c5db9336bc1db57ba04932eba7b706..d3e51de9983ae6f92bf57a9485f339f0253c2795 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerPrism {
+class AdminerPrism extends Adminer\Plugin {
        private $editorRoot;
        private $minified;
        private $theme;
index 07691f1dba8d6c2db490e0b7b3f3d4a82eb034d7..04beee7a31c3669c4f1624b936509768ce719b3b 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerSlugify {
+class AdminerSlugify extends Adminer\Plugin {
        protected $from, $to;
 
        /**
index 32289d7326923e977b69f576d252fbe80244cd3e..cc8e3ebb27954295959928ada9cd2c24637ac0ad 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerSqlLog {
+class AdminerSqlLog extends Adminer\Plugin {
        protected $filename;
 
        /**
index 5234bc0272dca3efd53f952adeb2d05372e8a21f..7839a2df8003d3676fa048fc6a23f174dc55509f 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerTableIndexesStructure {
+class AdminerTableIndexesStructure extends Adminer\Plugin {
 
        /** Print table structure in tabular format
        * @param Index[] $indexes data about all indexes on a table
index dbf11c157a38650255686e97532a8dacf8aaf292..03a93709a59f83f2d7addd84302806f399370e7d 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerTableStructure {
+class AdminerTableStructure extends Adminer\Plugin {
 
        /** Print table structure in tabular format
        * @param Field[] $fields data about individual fields
index 91a5a468daa7b6c35ecc429370b40bacaf04215f..28ce58f2b7db4352de478a31536259fd56400155 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-/** Use filter in tables list
+/** Filter names in tables list
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerTablesFilter {
+class AdminerTablesFilter extends Adminer\Plugin {
        function tablesPrint($tables) {
                ?>
 <script<?php echo Adminer\nonce(); ?>>
index 8f12fc9bf51648745cebebcd77884338ad1e35b1..eaf53fe8a25b907ef811a23b625542f3edb8f081 100644 (file)
@@ -7,7 +7,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerTinymce {
+class AdminerTinymce extends Adminer\Plugin {
        protected $path;
 
        function __construct(string $path = "tiny_mce/tiny_mce.js") {
index 77d09e37d2cfe0ff73a88d4c0a6bac49ce426f06..01d23e1ce21ca6f23e43d6f0063d37584050411f 100644 (file)
@@ -10,13 +10,13 @@ CREATE TABLE translation (
 );
 */
 
-/** Translate all table and field comments, enum and set values in Editor from the translation table (inserts new translations)
+/** Translate all table and field comments, enum and set values from the translation table (inserts new translations)
 * @link https://www.adminer.org/plugins/#use
 * @author Jakub Vrana, https://www.vrana.cz/
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerTranslation {
+class AdminerTranslation extends Adminer\Plugin {
 
        private function translate($idf) {
                static $translations, $lang;
index a40112eaabbdd658c9a4885ea4489b8dc435490d..492daea140440c2b52a34a7a124afba1fd94cb63 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerVersionGithub {
+class AdminerVersionGithub extends Adminer\Plugin {
 
        function head($dark = null) {
                ?>
index f01759a7baa855b8927af2e127c957bacdf4fee0..74e33cda4b7470a283df7edba1353e38e2792c1a 100644 (file)
@@ -6,7 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
-class AdminerVersionNoverify {
+class AdminerVersionNoverify extends Adminer\Plugin {
 
        function head($dark = null) {
                echo Adminer\script("verifyVersion = () => { };");