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.
36 lines
903 B
36 lines
903 B
<?php |
|
|
|
declare(strict_types=1); |
|
|
|
namespace PhpMyAdmin\Controllers\Export; |
|
|
|
use PhpMyAdmin\Controllers\AbstractController; |
|
use PhpMyAdmin\Controllers\Database\ExportController; |
|
use PhpMyAdmin\ResponseRenderer; |
|
use PhpMyAdmin\Template; |
|
|
|
use function __; |
|
|
|
final class TablesController extends AbstractController |
|
{ |
|
/** @var ExportController */ |
|
private $exportController; |
|
|
|
public function __construct(ResponseRenderer $response, Template $template, ExportController $exportController) |
|
{ |
|
parent::__construct($response, $template); |
|
$this->exportController = $exportController; |
|
} |
|
|
|
public function __invoke(): void |
|
{ |
|
if (empty($_POST['selected_tbl'])) { |
|
$this->response->setRequestStatus(false); |
|
$this->response->addJSON('message', __('No table selected.')); |
|
|
|
return; |
|
} |
|
|
|
($this->exportController)(); |
|
} |
|
}
|
|
|