PHP Класс PMA\libraries\controllers\database\DatabaseStructureController

Наследование: extends PMA\libraries\controllers\DatabaseController
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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
public addRemoveFavoriteTablesAction ( ) : void
Результат void

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.
public handleRealRowCountRequestAction ( ) : boolean
Результат boolean true

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