1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Move rendering of table structure and indexes list into plugin system

This allows the creation of a plugin to extend the display of either or
both of these things.
This commit is contained in:
Matthew Gamble
2015-12-06 01:21:37 +11:00
committed by Jakub Vrana
parent eb8c9929d3
commit 76612b1e8a
3 changed files with 51 additions and 25 deletions

View File

@@ -202,6 +202,16 @@ class AdminerPlugin extends Adminer {
return $this->_applyPlugin(__FUNCTION__, $args);
}
function tableStructurePrint($fields) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
function tableIndexesPrint($indexes) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
function selectColumnsPrint($select, $columns) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);