tbl_zoom_select.php 1.0 KB

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