protected function loadTables() { $tables = array(); $this->query('SHOW TABLES'); while (($row = $this->fetch()) != false) { foreach ($row as $value) { $tables[] = $value; } } return $tables; }