- PEAR coding standard

- added comments
- added more status variables
This commit is contained in:
Sebastian Mendel
2005-12-07 10:28:50 +00:00
parent 029c5b1811
commit 00cc9dd431
2 changed files with 63 additions and 8 deletions

View File

@@ -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';
}
}

View File

@@ -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
{
}
?>