- PEAR coding standard
- added comments - added more status variables
This commit is contained in:
@@ -1,42 +1,60 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
// vim: expandtab sw=4 ts=4 sts=4:
|
||||
|
||||
class PMA_StorageEngine_myisam extends PMA_StorageEngine {
|
||||
function getVariables () {
|
||||
/**
|
||||
* the MyISAM storage engine
|
||||
*/
|
||||
class PMA_StorageEngine_myisam extends PMA_StorageEngine
|
||||
{
|
||||
/**
|
||||
* returns array with variable names dedicated to MyISAM storage engine
|
||||
*
|
||||
* @return array variable names
|
||||
*/
|
||||
function getVariables()
|
||||
{
|
||||
return array(
|
||||
'myisam_data_pointer_size' => array(
|
||||
'title' => $GLOBALS['strMyISAMDataPointerSize'],
|
||||
'desc' => $GLOBALS['strMyISAMDataPointerSizeDesc'],
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
|
||||
),
|
||||
'myisam_recover_options' => array(
|
||||
'title' => $GLOBALS['strMyISAMRecoverOptions'],
|
||||
'desc' => $GLOBALS['strMyISAMRecoverOptionsDesc']
|
||||
'desc' => $GLOBALS['strMyISAMRecoverOptionsDesc'],
|
||||
),
|
||||
'myisam_max_sort_file_size' => array(
|
||||
'title' => $GLOBALS['strMyISAMMaxSortFileSize'],
|
||||
'desc' => $GLOBALS['strMyISAMMaxSortFileSizeDesc'],
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
|
||||
),
|
||||
'myisam_max_extra_sort_file_size' => array(
|
||||
'title' => $GLOBALS['strMyISAMMaxExtraSortFileSize'],
|
||||
'desc' => $GLOBALS['strMyISAMMaxExtraSortFileSizeDesc'],
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
|
||||
),
|
||||
'myisam_repair_threads' => array(
|
||||
'title' => $GLOBALS['strMyISAMRepairThreads'],
|
||||
'desc' => $GLOBALS['strMyISAMRepairThreadsDesc'],
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
|
||||
),
|
||||
'myisam_sort_buffer_size' => array(
|
||||
'title' => $GLOBALS['strMyISAMSortBufferSize'],
|
||||
'desc' => $GLOBALS['strMyISAMSortBufferSizeDesc'],
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE
|
||||
)
|
||||
'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
|
||||
),
|
||||
'myisam_stats_method' => array(
|
||||
),
|
||||
);
|
||||
}
|
||||
function getVariablesLikePattern () {
|
||||
|
||||
/**
|
||||
* returns SQL query LIKE pattern
|
||||
*
|
||||
* @return string LIKE pattern
|
||||
*/
|
||||
function getVariablesLikePattern()
|
||||
{
|
||||
return 'myisam\\_%';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user