You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
901 B
32 lines
901 B
<?php |
|
|
|
declare(strict_types=1); |
|
|
|
namespace PhpMyAdmin\Controllers\Database\CentralColumns; |
|
|
|
use PhpMyAdmin\Controllers\Database\AbstractController; |
|
use PhpMyAdmin\Database\CentralColumns; |
|
use PhpMyAdmin\ResponseRenderer; |
|
use PhpMyAdmin\Template; |
|
|
|
final class PopulateColumnsController extends AbstractController |
|
{ |
|
/** @var CentralColumns */ |
|
private $centralColumns; |
|
|
|
public function __construct( |
|
ResponseRenderer $response, |
|
Template $template, |
|
string $db, |
|
CentralColumns $centralColumns |
|
) { |
|
parent::__construct($response, $template, $db); |
|
$this->centralColumns = $centralColumns; |
|
} |
|
|
|
public function __invoke(): void |
|
{ |
|
$columns = $this->centralColumns->getColumnsNotInCentralList($this->db, $_POST['selectedTable']); |
|
$this->render('database/central_columns/populate_columns', ['columns' => $columns]); |
|
} |
|
}
|
|
|