PHP Class Inpsyde\MultilingualPress\Database\WPDBTableList

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Database\TableList
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( ) Constructor. Sets up the properties.
all_tables ( ) : string[] Returns an array with the names of all tables.
network_tables ( ) : string[] Returns an array with the names of all network tables.
site_tables ( integer $site_id ) : string[] Returns an array with the names of all tables for the site with the given ID.

Private Methods

Method Description
extract_tables_from_schema ( string $schema, string $prefix = '' ) : string[] Extracts all table names (including the given prefix) from the given schema.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( )

all_tables() public method

Returns an array with the names of all tables.
Since: 3.0.0
public all_tables ( ) : string[]
return string[] The names of all tables.

network_tables() public method

Returns an array with the names of all network tables.
Since: 3.0.0
public network_tables ( ) : string[]
return string[] The names of all network tables.

site_tables() public method

Returns an array with the names of all tables for the site with the given ID.
Since: 3.0.0
public site_tables ( integer $site_id ) : string[]
$site_id integer Site ID.
return string[] The names of all tables for the site with the given ID.