Translated using Weblate (Arabic)
[phpmyadmin.git] / tbl_select.php
blob4abd6764361625e7fd1baa63192478d78993e8b8
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles table search tab
6 * display table search form, create SQL query from form data
7 * and call Sql::executeQueryAndSendQueryResponse() to execute it
9 * @package PhpMyAdmin
11 declare(strict_types=1);
13 use PhpMyAdmin\Controllers\Table\SearchController;
14 use Symfony\Component\DependencyInjection\Definition;
16 if (! defined('ROOT_PATH')) {
17 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
20 global $containerBuilder, $url_query;
22 require_once ROOT_PATH . 'libraries/common.inc.php';
23 require_once ROOT_PATH . 'libraries/tbl_common.inc.php';
25 /* Define dependencies for the concerned controller */
26 $dependency_definitions = [
27 'searchType' => 'normal',
28 'url_query' => &$url_query,
31 /** @var Definition $definition */
32 $definition = $containerBuilder->getDefinition(SearchController::class);
33 $parameterBag = $containerBuilder->getParameterBag();
34 array_map(
35 static function (string $parameterName, $value) use ($definition, $parameterBag) {
36 $definition->replaceArgument($parameterName, $parameterBag->escapeValue($value));
38 array_keys($dependency_definitions),
39 $dependency_definitions
42 /** @var SearchController $controller */
43 $controller = $containerBuilder->get(SearchController::class);
44 $controller->indexAction();