From 00cc9dd4310ffab6b40f8d2e6f1cb261d0a3800c Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 7 Dec 2005 10:28:50 +0000 Subject: [PATCH] - PEAR coding standard - added comments - added more status variables --- libraries/engines/bdb.lib.php | 64 +++++++++++++++++++++++++--- libraries/engines/berkeleydb.lib.php | 7 ++- 2 files changed, 63 insertions(+), 8 deletions(-) diff --git a/libraries/engines/bdb.lib.php b/libraries/engines/bdb.lib.php index 8e4df0c24..dd33c8c4c 100644 --- a/libraries/engines/bdb.lib.php +++ b/libraries/engines/bdb.lib.php @@ -2,16 +2,68 @@ /* $Id$ */ // vim: expandtab sw=4 ts=4 sts=4: -class PMA_StorageEngine_bdb extends PMA_StorageEngine { - function getVariables () { +class PMA_StorageEngine_bdb extends PMA_StorageEngine +{ + /** + * @return array variable names + */ + function getVariables() + { return array( 'version_bdb' => array( - 'title' => $GLOBALS['strVersionInformation'] - ) + 'title' => $GLOBALS['strVersionInformation'], + ), + 'bdb_cache_size' => array( + 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE, + ), + 'bdb_home' => array( + ), + 'bdb_log_buffer_size' => array( + 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE, + ), + 'bdb_logdir' => array( + ), + 'bdb_max_lock' => array( + 'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC, + ), + 'bdb_shared_data' => array( + ), + 'bdb_tmpdir' => array( + ), + 'bdb_data_direct' => array( + ), + 'bdb_lock_detect' => array( + ), + 'bdb_log_direct' => array( + ), + 'bdb_no_recover' => array( + ), + 'bdb_no_sync' => array( + ), + 'skip_sync_bdb_logs' => array( + ), + 'sync_bdb_logs' => array( + ), ); } - function getVariablesLikePattern() { - return 'version_bdb'; + + /** + * @return string LIKE pattern + */ + function getVariablesLikePattern() + { + return '%bdb%'; + } + + /** + * returns string with filename for the MySQL helppage + * about this storage engne + * + * @return string mysql helppage filename + */ + function getMysqlHelpPage() + { + return 'bdb'; } } diff --git a/libraries/engines/berkeleydb.lib.php b/libraries/engines/berkeleydb.lib.php index 13c34caa1..49984fc43 100644 --- a/libraries/engines/berkeleydb.lib.php +++ b/libraries/engines/berkeleydb.lib.php @@ -2,7 +2,10 @@ /* $Id$ */ // vim: expandtab sw=4 ts=4 sts=4: -include_once('./libraries/engines/bdb.lib.php'); -class PMA_StorageEngine_berkeleydb extends PMA_StorageEngine_bdb {} +include_once './libraries/engines/bdb.lib.php'; + +class PMA_StorageEngine_berkeleydb extends PMA_StorageEngine_bdb +{ +} ?>