tbl_select.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Handles table search tab
  5. *
  6. * display table search form, create SQL query from form data
  7. * and call Sql::executeQueryAndSendQueryResponse() to execute it
  8. *
  9. * @package PhpMyAdmin
  10. */
  11. use PhpMyAdmin\Controllers\Table\TableSearchController;
  12. use PhpMyAdmin\Di\Container;
  13. use PhpMyAdmin\Response;
  14. /**
  15. * Gets some core libraries
  16. */
  17. require_once 'libraries/common.inc.php';
  18. require_once 'libraries/tbl_common.inc.php';
  19. $container = Container::getDefaultContainer();
  20. $container->factory('PhpMyAdmin\Controllers\Table\TableSearchController');
  21. $container->alias(
  22. 'TableSearchController', 'PhpMyAdmin\Controllers\Table\TableSearchController'
  23. );
  24. $container->set('PhpMyAdmin\Response', Response::getInstance());
  25. $container->alias('response', 'PhpMyAdmin\Response');
  26. /* Define dependencies for the concerned controller */
  27. $dependency_definitions = array(
  28. 'searchType' => 'normal',
  29. 'url_query' => &$url_query
  30. );
  31. /** @var TableSearchController $controller */
  32. $controller = $container->get('TableSearchController', $dependency_definitions);
  33. $controller->indexAction();