Bdb.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * The BDB storage engine
  5. *
  6. * @package PhpMyAdmin-Engines
  7. */
  8. namespace PhpMyAdmin\Engines;
  9. use PhpMyAdmin\StorageEngine;
  10. /**
  11. * The BDB storage engine
  12. *
  13. * @package PhpMyAdmin-Engines
  14. */
  15. class Bdb extends StorageEngine
  16. {
  17. /**
  18. * Returns array with variable names related to this storage engine
  19. *
  20. * @return array variable names
  21. */
  22. public function getVariables()
  23. {
  24. return array(
  25. 'version_bdb' => array(
  26. 'title' => __('Version information'),
  27. ),
  28. 'bdb_cache_size' => array(
  29. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  30. ),
  31. 'bdb_home' => array(),
  32. 'bdb_log_buffer_size' => array(
  33. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  34. ),
  35. 'bdb_logdir' => array(),
  36. 'bdb_max_lock' => array(
  37. 'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
  38. ),
  39. 'bdb_shared_data' => array(),
  40. 'bdb_tmpdir' => array(),
  41. 'bdb_data_direct' => array(),
  42. 'bdb_lock_detect' => array(),
  43. 'bdb_log_direct' => array(),
  44. 'bdb_no_recover' => array(),
  45. 'bdb_no_sync' => array(),
  46. 'skip_sync_bdb_logs' => array(),
  47. 'sync_bdb_logs' => array(),
  48. );
  49. }
  50. /**
  51. * Returns the pattern to be used in the query for SQL variables
  52. * related to this storage engine
  53. *
  54. * @return string LIKE pattern
  55. */
  56. public function getVariablesLikePattern()
  57. {
  58. return '%bdb%';
  59. }
  60. /**
  61. * returns string with filename for the MySQL helppage
  62. * about this storage engine
  63. *
  64. * @return string mysql helppage filename
  65. */
  66. public function getMysqlHelpPage()
  67. {
  68. return 'bdb';
  69. }
  70. }