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