From 5cbdcc29a798ff391801d10ef27afeb20a13d80b Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 7 Dec 2005 08:59:45 +0000 Subject: [PATCH] - PEAR coding standard - added comments - added more status variables --- libraries/engines/myisam.lib.php | 40 +++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/libraries/engines/myisam.lib.php b/libraries/engines/myisam.lib.php index fb23ffdd3..a722912ed 100644 --- a/libraries/engines/myisam.lib.php +++ b/libraries/engines/myisam.lib.php @@ -1,42 +1,60 @@ 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\\_%'; } }