PMA_getTableList(): added second parameter to pass tables (if already fetched from db)
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
||||
* libraries/sql_query_form.lib.php: undefined js variable
|
||||
* libraries/database_interface.lib.php: PMA_DBI_get_tables_full() first parameter
|
||||
now also accepts an array of database names not only a single name
|
||||
* libraries/common.lib.php: PMA_getTableList():
|
||||
added second parameter to pass tables (if already fetched from db)
|
||||
|
||||
2006-01-12 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* Documentation.html: typo, thanks to Cédric Corazza
|
||||
|
@@ -1034,25 +1034,27 @@ if (!defined('PMA_MINIMUM_COMMON')) {
|
||||
* @param string $db name of db
|
||||
* return array (rekursive) grouped table list
|
||||
*/
|
||||
function PMA_getTableList($db)
|
||||
function PMA_getTableList($db, $tables = null)
|
||||
{
|
||||
$sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
|
||||
|
||||
$tables = PMA_DBI_get_tables_full($db);
|
||||
if ( null === $tables ) {
|
||||
$tables = PMA_DBI_get_tables_full($db);
|
||||
if ($GLOBALS['cfg']['NaturalOrder']) {
|
||||
uksort($tables, 'strnatcasecmp');
|
||||
}
|
||||
}
|
||||
|
||||
if (count($tables) < 1) {
|
||||
return $tables;
|
||||
}
|
||||
|
||||
if ($GLOBALS['cfg']['NaturalOrder']) {
|
||||
uksort($tables, 'strnatcasecmp');
|
||||
}
|
||||
|
||||
$default = array(
|
||||
'Name' => '',
|
||||
'Rows' => 0,
|
||||
'Comment' => '',
|
||||
'disp_name' => '',
|
||||
);
|
||||
);
|
||||
|
||||
$table_groups = array();
|
||||
|
||||
|
Reference in New Issue
Block a user