tbl_find_replace.php 999 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Handles find and replace tab
  5. *
  6. * Displays find and replace form, allows previewing and do the replacing
  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. $dependency_definitions = array(
  25. 'searchType' => 'replace',
  26. 'url_query' => &$url_query
  27. );
  28. /** @var PhpMyAdmin\Controllers\Table\TableSearchController $controller */
  29. $controller = $container->get('TableSearchController', $dependency_definitions);
  30. $controller->indexAction();