bdb.lib.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. if (! defined('PHPMYADMIN')) {
  9. exit;
  10. }
  11. /**
  12. * The BDB storage engine
  13. *
  14. * @package PhpMyAdmin-Engines
  15. */
  16. class PMA_StorageEngine_Bdb extends PMA_StorageEngine
  17. {
  18. /**
  19. * Returns array with variable names related to this storage engine
  20. *
  21. * @return array variable names
  22. */
  23. public function getVariables()
  24. {
  25. return array(
  26. 'version_bdb' => array(
  27. 'title' => __('Version information'),
  28. ),
  29. 'bdb_cache_size' => array(
  30. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  31. ),
  32. 'bdb_home' => array(
  33. ),
  34. 'bdb_log_buffer_size' => array(
  35. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  36. ),
  37. 'bdb_logdir' => array(
  38. ),
  39. 'bdb_max_lock' => array(
  40. 'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
  41. ),
  42. 'bdb_shared_data' => array(
  43. ),
  44. 'bdb_tmpdir' => array(
  45. ),
  46. 'bdb_data_direct' => array(
  47. ),
  48. 'bdb_lock_detect' => array(
  49. ),
  50. 'bdb_log_direct' => array(
  51. ),
  52. 'bdb_no_recover' => array(
  53. ),
  54. 'bdb_no_sync' => array(
  55. ),
  56. 'skip_sync_bdb_logs' => array(
  57. ),
  58. 'sync_bdb_logs' => array(
  59. ),
  60. );
  61. }
  62. /**
  63. * Returns the pattern to be used in the query for SQL variables
  64. * related to this storage engine
  65. *
  66. * @return string LIKE pattern
  67. */
  68. public function getVariablesLikePattern()
  69. {
  70. return '%bdb%';
  71. }
  72. /**
  73. * returns string with filename for the MySQL helppage
  74. * about this storage engine
  75. *
  76. * @return string mysql helppage filename
  77. */
  78. public function getMysqlHelpPage()
  79. {
  80. return 'bdb';
  81. }
  82. }
  83. ?>