TableController.class.php 722 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Holds the PMA\TableController
  5. *
  6. * @package PMA
  7. */
  8. namespace PMA\Controllers;
  9. use PMA\DI\Container;
  10. if (!defined('PHPMYADMIN')) {
  11. exit;
  12. }
  13. require_once 'libraries/controllers/Controller.class.php';
  14. /**
  15. * Handles table related logic
  16. *
  17. * @package PhpMyAdmin
  18. */
  19. abstract class TableController extends Controller
  20. {
  21. /**
  22. * @var string $db
  23. */
  24. protected $db;
  25. /**
  26. * @var string $table
  27. */
  28. protected $table;
  29. /**
  30. * Constructor
  31. */
  32. public function __construct()
  33. {
  34. parent::__construct();
  35. $this->db = $this->container->get('db');
  36. $this->table = $this->container->get('table');
  37. }
  38. }