AbstractController.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Holds the PhpMyAdmin\Controllers\Table\AbstractController
  5. *
  6. * @package PhpMyAdmin\Controllers
  7. */
  8. declare(strict_types=1);
  9. namespace PhpMyAdmin\Controllers\Table;
  10. use PhpMyAdmin\Controllers\AbstractController as Controller;
  11. use PhpMyAdmin\DatabaseInterface;
  12. use PhpMyAdmin\Response;
  13. use PhpMyAdmin\Template;
  14. /**
  15. * Handles table related logic
  16. *
  17. * @package PhpMyAdmin\Controllers
  18. */
  19. abstract class AbstractController extends Controller
  20. {
  21. /**
  22. * @var string
  23. */
  24. protected $db;
  25. /**
  26. * @var string
  27. */
  28. protected $table;
  29. /**
  30. * Constructor
  31. *
  32. * @param Response $response Response object
  33. * @param DatabaseInterface $dbi DatabaseInterface object
  34. * @param Template $template Template object
  35. * @param string $db Database name
  36. * @param string $table Table name
  37. */
  38. public function __construct(
  39. $response,
  40. $dbi,
  41. Template $template,
  42. $db,
  43. $table
  44. ) {
  45. parent::__construct($response, $dbi, $template);
  46. $this->db = $db;
  47. $this->table = $table;
  48. }
  49. }