@@ 439-456 (lines=18) @@ | ||
436 | private function getDatabaseStructure() |
|
437 | { |
|
438 | // Listing all tables from database |
|
439 | if (empty($this->dumpSettings['include-tables'])) { |
|
440 | // include all tables for now, blacklisting happens later |
|
441 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
442 | array_push($this->tables, current($row)); |
|
443 | } |
|
444 | } else { |
|
445 | // include only the tables mentioned in include-tables |
|
446 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
447 | if (in_array(current($row), $this->dumpSettings['include-tables'], true)) { |
|
448 | array_push($this->tables, current($row)); |
|
449 | $elem = array_search( |
|
450 | current($row), |
|
451 | $this->dumpSettings['include-tables'] |
|
452 | ); |
|
453 | unset($this->dumpSettings['include-tables'][$elem]); |
|
454 | } |
|
455 | } |
|
456 | } |
|
457 | ||
458 | // Listing all views from database |
|
459 | if (empty($this->dumpSettings['include-views'])) { |
|
@@ 459-476 (lines=18) @@ | ||
456 | } |
|
457 | ||
458 | // Listing all views from database |
|
459 | if (empty($this->dumpSettings['include-views'])) { |
|
460 | // include all views for now, blacklisting happens later |
|
461 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
462 | array_push($this->views, current($row)); |
|
463 | } |
|
464 | } else { |
|
465 | // include only the tables mentioned in include-tables |
|
466 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
467 | if (in_array(current($row), $this->dumpSettings['include-views'], true)) { |
|
468 | array_push($this->views, current($row)); |
|
469 | $elem = array_search( |
|
470 | current($row), |
|
471 | $this->dumpSettings['include-views'] |
|
472 | ); |
|
473 | unset($this->dumpSettings['include-views'][$elem]); |
|
474 | } |
|
475 | } |
|
476 | } |
|
477 | ||
478 | // Listing all triggers from database |
|
479 | if (false === $this->dumpSettings['skip-triggers']) { |