devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/tbl_select.php

39 lines
1.1 KiB
PHP
Raw Normal View History

2016-10-22 14:57:10 +00:00
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Handles table search tab
*
* display table search form, create SQL query from form data
2018-04-14 09:18:00 +00:00
* and call Sql::executeQueryAndSendQueryResponse() to execute it
2016-10-22 14:57:10 +00:00
*
* @package PhpMyAdmin
*/
2018-04-14 09:18:00 +00:00
use PhpMyAdmin\Controllers\Table\TableSearchController;
use PhpMyAdmin\Di\Container;
use PhpMyAdmin\Response;
2016-10-22 14:57:10 +00:00
/**
* Gets some core libraries
*/
require_once 'libraries/common.inc.php';
require_once 'libraries/tbl_common.inc.php';
2018-04-14 09:18:00 +00:00
$container = Container::getDefaultContainer();
$container->factory('PhpMyAdmin\Controllers\Table\TableSearchController');
2016-10-22 14:57:10 +00:00
$container->alias(
2018-04-14 09:18:00 +00:00
'TableSearchController', 'PhpMyAdmin\Controllers\Table\TableSearchController'
2016-10-22 14:57:10 +00:00
);
2018-04-14 09:18:00 +00:00
$container->set('PhpMyAdmin\Response', Response::getInstance());
$container->alias('response', 'PhpMyAdmin\Response');
2016-10-22 14:57:10 +00:00
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
'searchType' => 'normal',
'url_query' => &$url_query
);
/** @var TableSearchController $controller */
$controller = $container->get('TableSearchController', $dependency_definitions);
$controller->indexAction();