Ifsnop\Mysqldump\Mysqldump::getViewStructureTable PHP Метод

getViewStructureTable() приватный Метод

View structure extractor, create table (avoids cyclic references)
private getViewStructureTable ( string $viewName ) : null
$viewName string Name of view to export
Результат null
    private function getViewStructureTable($viewName)
    {
        if (!$this->dumpSettings['skip-comments']) {
            $ret = "--" . PHP_EOL . "-- Stand-In structure for view `{$viewName}`" . PHP_EOL . "--" . PHP_EOL . PHP_EOL;
            $this->compressManager->write($ret);
        }
        $stmt = $this->typeAdapter->show_create_view($viewName);
        // create views as tables, to resolve dependencies
        foreach ($this->dbHandler->query($stmt) as $r) {
            if ($this->dumpSettings['add-drop-table']) {
                $this->compressManager->write($this->typeAdapter->drop_view($viewName));
            }
            $this->compressManager->write($this->createStandInTable($viewName));
            break;
        }
    }