Свойство | Тип | Описание | |
---|---|---|---|
$_db_is_system_schema | DB is information_schema | ||
$_showtable | Show table info | ||
$_table_info_num_rows | Number of rows | ||
$_tbl_collation | Table collation | ||
$_tbl_is_view | Table is a view | ||
$_tbl_storage_engine | Table storage engine | ||
$_url_query | The URL query string | ||
$table_obj | The table object |
Метод | Описание | |
---|---|---|
__construct ( string $type, string $db, string $table, string $url_query, integer $num_tables, integer $pos, boolean $db_is_system_schema, integer $total_num_tables, array $tables, boolean $is_show_stats, boolean $tbl_is_view, string $tbl_storage_engine, integer $table_info_num_rows, string $tbl_collation, array $showtable ) | TableStructureController constructor | |
indexAction ( ) : void | Index action |
Метод | Описание | |
---|---|---|
adjustColumnPrivileges ( array $adjust_privileges ) : boolean | Adjusts the Privileges for all the columns whose names have changed | |
columnNeedsAlterTable ( integer $i ) : boolean | Verifies if some elements of a column have changed | |
displayHtmlForColumnChange ( array $selected, string $action ) : boolean | Displays HTML for changing one or more columns | |
displayHtmlForPartitionChange ( ) : string | Displays HTML for partition change | |
displayStructure ( array $cfgRelation, array $columns_with_unique_index, mixed $url_params, |
Displays the table structure ('show table' works correct since 3.23.03) | |
displayTableBrowseForSelectedColumns ( string $goto, string $pmaThemeImage ) : void | Function to display table browse for selected columns | |
getDataForSubmitMult ( string $submit_mult, array $selected, string $action ) : array | Get List of information for Submit Mult | |
getKeyForTablePrimary ( ) : string | Gets table primary key | |
getMultipleFieldCommandType ( ) : string | Function to get the type of command for multiple field handling | |
getTableStats ( ) : string | Get HTML snippet for display table statistics | |
moveColumns ( ) : void | Moves columns in the table's structure based on $_REQUEST | |
updateColumns ( ) : boolean | Update the table's structure based on $_REQUEST | |
updatePartitioning ( ) : void | Update the table's partitioning based on $_REQUEST |
Метод | Описание | |
---|---|---|
_extractPartitionDetails ( ) : array[] | Extracts partition details from CREATE TABLE statement |
public __construct ( string $type, string $db, string $table, string $url_query, integer $num_tables, integer $pos, boolean $db_is_system_schema, integer $total_num_tables, array $tables, boolean $is_show_stats, boolean $tbl_is_view, string $tbl_storage_engine, integer $table_info_num_rows, string $tbl_collation, array $showtable ) | ||
$type | string | Indicate the db_structure or tbl_structure |
$db | string | DB name |
$table | string | Table name |
$url_query | string | URL query |
$num_tables | integer | Number of tables |
$pos | integer | Current position in the list |
$db_is_system_schema | boolean | DB is information_schema |
$total_num_tables | integer | Number of tables |
$tables | array | Tables in the DB |
$is_show_stats | boolean | Whether stats show or not |
$tbl_is_view | boolean | Table is a view |
$tbl_storage_engine | string | Table storage engine |
$table_info_num_rows | integer | Number of rows |
$tbl_collation | string | Table collation |
$showtable | array | Show table info |
protected adjustColumnPrivileges ( array $adjust_privileges ) : boolean | ||
$adjust_privileges | array | assoc array of old col names mapped to new cols |
Результат | boolean | $changed boolean whether at least one column privileges adjusted |
protected columnNeedsAlterTable ( integer $i ) : boolean | ||
$i | integer | column index in the request |
Результат | boolean | $alterTableNeeded true if we need to generate ALTER TABLE |
protected displayHtmlForPartitionChange ( ) : string | ||
Результат | string | HTML for partition change |
protected displayStructure ( array $cfgRelation, array $columns_with_unique_index, mixed $url_params, |
||
$cfgRelation | array | current relation parameters |
$columns_with_unique_index | array | Columns with unique index |
$url_params | mixed | Contains an associative array with url params |
$primary_index | primary index or false if no one exists | |
$fields | array | Fields |
$columns_with_index | array | Columns with index |
Результат | string |
protected getKeyForTablePrimary ( ) : string | ||
Результат | string |
protected getMultipleFieldCommandType ( ) : string | ||
Результат | string |
protected getTableStats ( ) : string | ||
Результат | string | $html_output |
protected moveColumns ( ) : void | ||
Результат | void |
protected updateColumns ( ) : boolean | ||
Результат | boolean | $regenerate true if error occurred |
protected updatePartitioning ( ) : void | ||
Результат | void |