proper document global $GLOBALS['showtable']

This commit is contained in:
Sebastian Mendel
2008-12-10 09:23:07 +00:00
parent a059b08ce0
commit 8a727a70a0

View File

@@ -40,11 +40,21 @@ global $showtable, $tbl_is_view, $tbl_type, $show_comment, $tbl_collation,
// otherwise error #1046, no database selected
PMA_DBI_select_db($GLOBALS['db']);
/**
* Holds information about the current table
*
* @todo replace this by PMA_Table
* @global array $GLOBALS['showtable']
* @name $showtable
*/
$GLOBALS['showtable'] = array();
// PMA_Table::sGetStatusInfo() does caching by default, but here
// we force reading of the current table status
// if $reread_info is true (for example, coming from tbl_operations.php
// and we just changed the table's storage engine)
$showtable = PMA_Table::sGetStatusInfo($GLOBALS['db'], $GLOBALS['table'], null, (isset($reread_info) && $reread_info ? true : false));
$GLOBALS['showtable'] = PMA_Table::sGetStatusInfo($GLOBALS['db'], $GLOBALS['table'], null, (isset($reread_info) && $reread_info ? true : false));
// need this test because when we are creating a table, we get 0 rows
// from the SHOW TABLE query