PHP 클래스 PMA\libraries\controllers\table\TableStructureController

상속: extends PMA\libraries\controllers\TableController
파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin

보호된 프로퍼티들

프로퍼티 타입 설명
$_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, Index | false $primary_index, array $fields, array $columns_with_index ) : string 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

메소드 상세

__construct() 공개 메소드

TableStructureController constructor
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

adjustColumnPrivileges() 보호된 메소드

Adjusts the Privileges for all the columns whose names have changed
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

columnNeedsAlterTable() 보호된 메소드

Verifies if some elements of a column have changed
protected columnNeedsAlterTable ( integer $i ) : boolean
$i integer column index in the request
리턴 boolean $alterTableNeeded true if we need to generate ALTER TABLE

displayHtmlForColumnChange() 보호된 메소드

Displays HTML for changing one or more columns
protected displayHtmlForColumnChange ( array $selected, string $action ) : boolean
$selected array the selected columns
$action string target script to call
리턴 boolean $regenerate true if error occurred

displayHtmlForPartitionChange() 보호된 메소드

Displays HTML for partition change
protected displayHtmlForPartitionChange ( ) : string
리턴 string HTML for partition change

displayStructure() 보호된 메소드

Displays the table structure ('show table' works correct since 3.23.03)
protected displayStructure ( array $cfgRelation, array $columns_with_unique_index, mixed $url_params, Index | false $primary_index, array $fields, array $columns_with_index ) : string
$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 PMA\libraries\Index | false primary index or false if no one exists
$fields array Fields
$columns_with_index array Columns with index
리턴 string

displayTableBrowseForSelectedColumns() 보호된 메소드

Function to display table browse for selected columns
protected displayTableBrowseForSelectedColumns ( string $goto, string $pmaThemeImage ) : void
$goto string goto page url
$pmaThemeImage string URI of the pma theme image
리턴 void

getDataForSubmitMult() 보호된 메소드

Get List of information for Submit Mult
protected getDataForSubmitMult ( string $submit_mult, array $selected, string $action ) : array
$submit_mult string mult_submit type
$selected array the selected columns
$action string action type
리턴 array

getKeyForTablePrimary() 보호된 메소드

Gets table primary key
protected getKeyForTablePrimary ( ) : string
리턴 string

getMultipleFieldCommandType() 보호된 메소드

Function to get the type of command for multiple field handling
protected getMultipleFieldCommandType ( ) : string
리턴 string

getTableStats() 보호된 메소드

Get HTML snippet for display table statistics
protected getTableStats ( ) : string
리턴 string $html_output

indexAction() 공개 메소드

Index action
public indexAction ( ) : void
리턴 void

moveColumns() 보호된 메소드

Moves columns in the table's structure based on $_REQUEST
protected moveColumns ( ) : void
리턴 void

updateColumns() 보호된 메소드

Update the table's structure based on $_REQUEST
protected updateColumns ( ) : boolean
리턴 boolean $regenerate true if error occurred

updatePartitioning() 보호된 메소드

Update the table's partitioning based on $_REQUEST
protected updatePartitioning ( ) : void
리턴 void

프로퍼티 상세

$_db_is_system_schema 보호되어 있는 프로퍼티

DB is information_schema
protected $_db_is_system_schema

$_showtable 보호되어 있는 프로퍼티

Show table info
protected $_showtable

$_table_info_num_rows 보호되어 있는 프로퍼티

Number of rows
protected $_table_info_num_rows

$_tbl_collation 보호되어 있는 프로퍼티

Table collation
protected $_tbl_collation

$_tbl_is_view 보호되어 있는 프로퍼티

Table is a view
protected $_tbl_is_view

$_tbl_storage_engine 보호되어 있는 프로퍼티

Table storage engine
protected $_tbl_storage_engine

$_url_query 보호되어 있는 프로퍼티

The URL query string
protected $_url_query

$table_obj 보호되어 있는 프로퍼티

The table object
protected $table_obj