PHP Class PMA\libraries\controllers\database\DatabaseStructureController

Inheritance: extends PMA\libraries\controllers\DatabaseController
Afficher le fichier Open project: phpmyadmin/phpmyadmin Class Usage Examples

Protected Properties

Свойство Type Description
$_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

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
_getDbInfo ( string $sub_part ) : void Retrieves databse information for further use

Method Details

__construct() public méthode

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

addRemoveFavoriteTablesAction() public méthode

Add or remove favorite tables
public addRemoveFavoriteTablesAction ( ) : void
Résultat void

checkFavoriteTable() protected méthode

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

displayTableList() protected méthode

Displays the list of tables
protected displayTableList ( ) : void
Résultat void

getReplicationStatus() protected méthode

Returns the replication status of the table.
protected getReplicationStatus ( string $table ) : array
$table string table name
Résultat array

getStuffForEngineTypeTable() protected méthode

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
Résultat array

getTrackingIcon() protected méthode

Returns the tracking icon if the table is tracked
protected getTrackingIcon ( string $table ) : string
$table string table name
Résultat string HTML for tracking icon

getValuesForAriaTable() protected méthode

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
Résultat array

getValuesForInnodbTable() protected méthode

Get values for InnoDB table
protected getValuesForInnodbTable ( array $current_table, integer $sum_size ) : array
$current_table array current table
$sum_size integer sum size
Résultat array

handleRealRowCountRequestAction() public méthode

Handles request for real row count on database level view page.
public handleRealRowCountRequestAction ( ) : boolean
Résultat boolean true

hasTable() protected méthode

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

indexAction() public méthode

Index action
public indexAction ( ) : void
Résultat void

isRowCountApproximated() protected méthode

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
Résultat array

multiSubmitAction() public méthode

Handles actions related to multiple tables
public multiSubmitAction ( ) : void
Résultat void

synchronizeFavoriteTables() protected méthode

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
Résultat void

Property Details

$_db_is_system_schema protected_oe property

DB is information_schema
protected $_db_is_system_schema

$_is_show_stats protected_oe property

whether stats show or not
protected $_is_show_stats

$_num_tables protected_oe property

Number of tables
protected $_num_tables

$_pos protected_oe property

Current position in the list
protected $_pos

$_tables protected_oe property

Tables in the database
protected $_tables

$_total_num_tables protected_oe property

Number of tables
protected $_total_num_tables

$_url_query protected_oe property

The URL query string
protected $_url_query