Translated using Weblate (Chinese (Simplified))
[phpmyadmin.git] / tbl_zoom_select.php
blob2cea5cb0a13dc3bd2075d5bbf10510ae7e30a8db
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles table zoom search tab
6 * display table zoom search form, create SQL queries from form data
8 * @package PhpMyAdmin
9 */
10 declare(strict_types=1);
12 use PhpMyAdmin\Controllers\Table\SearchController;
13 use Symfony\Component\DependencyInjection\Definition;
15 if (! defined('ROOT_PATH')) {
16 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
19 global $url_query;
21 require_once ROOT_PATH . 'libraries/common.inc.php';
22 require_once ROOT_PATH . 'libraries/tbl_common.inc.php';
24 /* Define dependencies for the concerned controller */
25 $dependency_definitions = [
26 'searchType' => 'zoom',
27 'url_query' => &$url_query,
30 /** @var Definition $definition */
31 $definition = $containerBuilder->getDefinition(SearchController::class);
32 $parameterBag = $containerBuilder->getParameterBag();
33 array_map(
34 static function (string $parameterName, $value) use ($definition, $parameterBag) {
35 $definition->replaceArgument($parameterName, $parameterBag->escapeValue($value));
37 array_keys($dependency_definitions),
38 $dependency_definitions
41 /** @var SearchController $controller */
42 $controller = $containerBuilder->get(SearchController::class);
43 $controller->indexAction();