PHP 클래스 PMA\libraries\controllers\database\DatabaseStructureController

상속: extends PMA\libraries\controllers\DatabaseController
파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_db_is_system_schema DB is information_schema
$_is_show_stats whether stats show or not
$_num_tables Number of tables
$_pos Current position in the list
$_tables Tables in the database
$_total_num_tables Number of tables
$_url_query The URL query string

공개 메소드들

메소드 설명
__construct ( string $url_query ) DatabaseStructureController constructor
addRemoveFavoriteTablesAction ( ) : void Add or remove favorite tables
handleRealRowCountRequestAction ( ) : boolean Handles request for real row count on database level view page.
indexAction ( ) : void Index action
multiSubmitAction ( ) : void Handles actions related to multiple tables

보호된 메소드들

메소드 설명
checkFavoriteTable ( string $current_table ) : true | false Function to check if a table is already in favorite list.
displayTableList ( ) : void Displays the list of tables
getReplicationStatus ( string $table ) : array Returns the replication status of the table.
getStuffForEngineTypeTable ( array $current_table, integer $sum_size, integer $overhead_size ) : array Get the value set for ENGINE table,
getTrackingIcon ( string $table ) : string Returns the tracking icon if the table is tracked
getValuesForAriaTable ( array $current_table, integer $sum_size, integer $overhead_size, integer $formatted_size, string $unit, integer $formatted_overhead, string $overhead_unit ) : array Get values for ARIA/MARIA tables
getValuesForInnodbTable ( array $current_table, integer $sum_size ) : array Get values for InnoDB table
hasTable ( array $db, string $truename ) : boolean Find table with truename
isRowCountApproximated ( array $current_table, boolean $table_is_view ) : array Returns whether the row count is approximated
synchronizeFavoriteTables ( RecentFavoriteTable $fav_instance, string $user, array $favorite_tables ) : void Synchronize favorite tables

비공개 메소드들

메소드 설명
_getDbInfo ( string $sub_part ) : void Retrieves databse information for further use

메소드 상세

__construct() 공개 메소드

DatabaseStructureController constructor
public __construct ( string $url_query )
$url_query string URL query

addRemoveFavoriteTablesAction() 공개 메소드

Add or remove favorite tables

checkFavoriteTable() 보호된 메소드

Function to check if a table is already in favorite list.
protected checkFavoriteTable ( string $current_table ) : true | false
$current_table string current table
리턴 true | false

displayTableList() 보호된 메소드

Displays the list of tables
protected displayTableList ( ) : void
리턴 void

getReplicationStatus() 보호된 메소드

Returns the replication status of the table.
protected getReplicationStatus ( string $table ) : array
$table string table name
리턴 array

getStuffForEngineTypeTable() 보호된 메소드

Get the value set for ENGINE table,
protected getStuffForEngineTypeTable ( array $current_table, integer $sum_size, integer $overhead_size ) : array
$current_table array current table
$sum_size integer total table size
$overhead_size integer overhead size
리턴 array

getTrackingIcon() 보호된 메소드

Returns the tracking icon if the table is tracked
protected getTrackingIcon ( string $table ) : string
$table string table name
리턴 string HTML for tracking icon

getValuesForAriaTable() 보호된 메소드

Get values for ARIA/MARIA tables
protected getValuesForAriaTable ( array $current_table, integer $sum_size, integer $overhead_size, integer $formatted_size, string $unit, integer $formatted_overhead, string $overhead_unit ) : array
$current_table array current table
$sum_size integer sum size
$overhead_size integer overhead size
$formatted_size integer formatted size
$unit string unit
$formatted_overhead integer overhead formatted
$overhead_unit string overhead unit
리턴 array

getValuesForInnodbTable() 보호된 메소드

Get values for InnoDB table
protected getValuesForInnodbTable ( array $current_table, integer $sum_size ) : array
$current_table array current table
$sum_size integer sum size
리턴 array

handleRealRowCountRequestAction() 공개 메소드

Handles request for real row count on database level view page.

hasTable() 보호된 메소드

Find table with truename
protected hasTable ( array $db, string $truename ) : boolean
$db array DB to look into
$truename string Table name
리턴 boolean

indexAction() 공개 메소드

Index action
public indexAction ( ) : void
리턴 void

isRowCountApproximated() 보호된 메소드

Returns whether the row count is approximated
protected isRowCountApproximated ( array $current_table, boolean $table_is_view ) : array
$current_table array array containing details about the table
$table_is_view boolean whether the table is a view
리턴 array

multiSubmitAction() 공개 메소드

Handles actions related to multiple tables
public multiSubmitAction ( ) : void
리턴 void

synchronizeFavoriteTables() 보호된 메소드

Synchronize favorite tables
protected synchronizeFavoriteTables ( RecentFavoriteTable $fav_instance, string $user, array $favorite_tables ) : void
$fav_instance PMA\libraries\RecentFavoriteTable Instance of this class
$user string The user hash
$favorite_tables array Existing favorites
리턴 void

프로퍼티 상세

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

DB is information_schema
protected $_db_is_system_schema

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

whether stats show or not
protected $_is_show_stats

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

Number of tables
protected $_num_tables

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

Current position in the list
protected $_pos

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

Tables in the database
protected $_tables

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

Number of tables
protected $_total_num_tables

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

The URL query string
protected $_url_query