PHP Class PMA\libraries\controllers\server\ServerDatabasesController

Inheritance: extends PMA\libraries\controllers\Controller
Show file Open project: phpmyadmin/phpmyadmin

Public Methods

Method Description
_buildHtmlForDb ( array $current, string $url_query, array $column_order, array $replication_types, array $replication_info, string $tr_class = '' ) : array Builds the HTML for one database to display in the list of databases from server_databases.php
createDatabaseAction ( ) : void Handles creating a new database
dropDatabasesAction ( ) : void Handles dropping multiple databases
indexAction ( ) : void Index action

Private Methods

Method Description
_getColumnOrder ( ) : array Prepares the $column_order array
_getHtmlForDatabases ( array $replication_types ) : string Returns the html for Database List
_getHtmlForNoticeEnableStatistics ( ) : string Returns the html for Enable Statistics
_getHtmlForTableBody ( array $column_order, array $replication_types ) : string Returns the html for Database List
_getHtmlForTableFooter ( string $column_order, string $first_database ) : string Returns the html for Table footer
_getHtmlForTableFooterButtons ( ) : string Returns the html for Table footer buttons
_getHtmlForTableHeader ( array $_url_params, array $column_order, array $first_database ) : string Returns the html for table header
_setSortDetails ( ) : void Extracts parameters $sort_order and $sort_by

Method Details

_buildHtmlForDb() public method

Builds the HTML for one database to display in the list of databases from server_databases.php
public _buildHtmlForDb ( array $current, string $url_query, array $column_order, array $replication_types, array $replication_info, string $tr_class = '' ) : array
$current array current database
$url_query string url query
$column_order array column order
$replication_types array replication types
$replication_info array replication info
$tr_class string HTMl class for the row
return array $column_order, $out

createDatabaseAction() public method

Handles creating a new database
public createDatabaseAction ( ) : void
return void

dropDatabasesAction() public method

Handles dropping multiple databases
public dropDatabasesAction ( ) : void
return void

indexAction() public method

Index action
public indexAction ( ) : void
return void