mirror of
https://github.com/vrana/adminer.git
synced 2025-08-31 18:11:52 +02:00
Keep backward compatibility with non-official plugins
This commit is contained in:
@@ -399,7 +399,7 @@ class Adminer {
|
|||||||
* @param array $select result of selectColumnsProcess()[0]
|
* @param array $select result of selectColumnsProcess()[0]
|
||||||
* @param array $columns selectable columns
|
* @param array $columns selectable columns
|
||||||
*/
|
*/
|
||||||
function selectColumnsPrint(array $select, array $columns) {
|
function selectColumnsPrint($select, $columns) {
|
||||||
global $functions, $grouping;
|
global $functions, $grouping;
|
||||||
|
|
||||||
print_fieldset("select", lang('Select'), $select, true);
|
print_fieldset("select", lang('Select'), $select, true);
|
||||||
@@ -447,7 +447,7 @@ class Adminer {
|
|||||||
* @param array $where result of selectSearchProcess()
|
* @param array $where result of selectSearchProcess()
|
||||||
* @param array $columns selectable columns
|
* @param array $columns selectable columns
|
||||||
*/
|
*/
|
||||||
function selectSearchPrint(array $where, array $columns, array $indexes) {
|
function selectSearchPrint($where, $columns, $indexes) {
|
||||||
print_fieldset("search", lang('Search'), $where);
|
print_fieldset("search", lang('Search'), $where);
|
||||||
|
|
||||||
foreach ($indexes as $i => $index) {
|
foreach ($indexes as $i => $index) {
|
||||||
@@ -489,7 +489,7 @@ class Adminer {
|
|||||||
* @param array $order result of selectOrderProcess()
|
* @param array $order result of selectOrderProcess()
|
||||||
* @param array $columns selectable columns
|
* @param array $columns selectable columns
|
||||||
*/
|
*/
|
||||||
function selectOrderPrint(array $order, array $columns, array $indexes) {
|
function selectOrderPrint($order, $columns, $indexes) {
|
||||||
print_fieldset("sort", lang('Sort'), $order, true);
|
print_fieldset("sort", lang('Sort'), $order, true);
|
||||||
|
|
||||||
$_GET["order"][""] = "";
|
$_GET["order"][""] = "";
|
||||||
@@ -1199,7 +1199,7 @@ bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '
|
|||||||
* @param array $tables Result of table_status('', true)
|
* @param array $tables Result of table_status('', true)
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function tablesPrint(array $tables) {
|
function tablesPrint($tables) {
|
||||||
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
|
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
|
||||||
|
|
||||||
foreach ($tables as $table => $status) {
|
foreach ($tables as $table => $status) {
|
||||||
|
@@ -224,11 +224,11 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
|||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectColumnsPrint(array $select, array $columns) {
|
function selectColumnsPrint($select, $columns) {
|
||||||
// can allow grouping functions by indexes
|
// can allow grouping functions by indexes
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectSearchPrint(array $where, array $columns, array $indexes) {
|
function selectSearchPrint($where, $columns, $indexes) {
|
||||||
$where = (array) $_GET["where"];
|
$where = (array) $_GET["where"];
|
||||||
echo '<fieldset id="fieldset-search"><legend>' . lang('Search') . "</legend><div>\n";
|
echo '<fieldset id="fieldset-search"><legend>' . lang('Search') . "</legend><div>\n";
|
||||||
$keys = array();
|
$keys = array();
|
||||||
@@ -281,7 +281,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
|||||||
echo "</div></fieldset>\n";
|
echo "</div></fieldset>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectOrderPrint(array $order, array $columns, array $indexes) {
|
function selectOrderPrint($order, $columns, $indexes) {
|
||||||
//! desc
|
//! desc
|
||||||
$orders = array();
|
$orders = array();
|
||||||
foreach ($indexes as $key => $index) {
|
foreach ($indexes as $key => $index) {
|
||||||
@@ -654,7 +654,7 @@ qsl('div').onclick = whisperClick;", "")
|
|||||||
. "</div>\n";
|
. "</div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function tablesPrint(array $tables) {
|
function tablesPrint($tables) {
|
||||||
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
|
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
|
||||||
|
|
||||||
foreach ($tables as $row) {
|
foreach ($tables as $row) {
|
||||||
|
@@ -250,17 +250,17 @@ class AdminerPlugin extends Adminer {
|
|||||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectColumnsPrint(array $select, array $columns) {
|
function selectColumnsPrint($select,$columns) {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectSearchPrint(array $where, array $columns, array $indexes) {
|
function selectSearchPrint($where, $columns, $indexes) {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectOrderPrint(array $order, array $columns, array $indexes) {
|
function selectOrderPrint($order, $columns, $indexes) {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||||
}
|
}
|
||||||
@@ -395,7 +395,7 @@ class AdminerPlugin extends Adminer {
|
|||||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
function tablesPrint(array $tables) {
|
function tablesPrint($tables) {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user