Adminer and Adminer Editor can be extended by plugins. To use a plugin
<database name=""><table name=""><column name="">value
<textarea>
for char
and varchar
<select><option>
for enum
edit instead of <input type="radio">
<select><option>
for enum
edit instead of regular input text on enum type in PostgreSQL_path
by <input type="file">
and link to the uploaded files from selectmysql
and information_schema
databases) by foreign keyslogin
table_slug
with slugified value of a previous field (JavaScript)_html
by HTML editor TinyMCE and display the HTML in selectenum
and set
values from the translation
table (automatically inserts new translations)_html
by HTML editor WYMeditor and display the HTML in selectuser_id
=> users.id
user_id
=> users.id
pg_
prefix (Martin Jagr)Create a PHP file specifying which plugins do you want to use:
<?php
function adminer_object() {
// required to run any plugin
include_once "./plugins/plugin.php";
// autoloader
foreach (glob("plugins/*.php") as $filename) {
include_once "./$filename";
}
// enable extra drivers just by including them
//~ include "./plugins/drivers/simpledb.php";
$plugins = array(
// specify enabled plugins here
new AdminerDumpXml(),
new AdminerTinymce(),
new AdminerFileUpload("data/"),
new AdminerSlugify(),
new AdminerTranslation(),
new AdminerForeignSystem(),
);
/* It is possible to combine customization and plugins:
class AdminerCustomization extends AdminerPlugin {
}
return new AdminerCustomization($plugins);
*/
return new AdminerPlugin($plugins);
}
// include original Adminer or Adminer Editor
include "./adminer.php";
?>
Then point your browser to this file.
Adminer
class (dokumentacia).null
value then it will be used instead of the original (except dumpFormat
, dumpOutput
, editFunctions
where the return value is appended to the original).f(&$param)
.