@@ 1013-1017 (lines=5) @@ | ||
1010 | */ |
|
1011 | public function tables( $scope = 'all', $prefix = true, $blog_id = 0 ) { |
|
1012 | switch ( $scope ) { |
|
1013 | case 'all' : |
|
1014 | $tables = array_merge( $this->global_tables, $this->tables ); |
|
1015 | if ( is_multisite() ) |
|
1016 | $tables = array_merge( $tables, $this->ms_global_tables ); |
|
1017 | break; |
|
1018 | case 'blog' : |
|
1019 | $tables = $this->tables; |
|
1020 | break; |
|
@@ 1021-1025 (lines=5) @@ | ||
1018 | case 'blog' : |
|
1019 | $tables = $this->tables; |
|
1020 | break; |
|
1021 | case 'global' : |
|
1022 | $tables = $this->global_tables; |
|
1023 | if ( is_multisite() ) |
|
1024 | $tables = array_merge( $tables, $this->ms_global_tables ); |
|
1025 | break; |
|
1026 | case 'ms_global' : |
|
1027 | $tables = $this->ms_global_tables; |
|
1028 | break; |