/** * setup HTML for server Engines information * * @return string */ function PMA_getHtmlForServerEngines() { /** * Did the user request information about a certain storage engine? */ $html = ''; if (empty($_REQUEST['engine']) || !StorageEngine::isValid($_REQUEST['engine'])) { $html .= PMA_getHtmlForAllServerEngines(); } else { $html .= PMA_getHtmlForSpecifiedServerEngines(); } return $html; }
/** * Index action * * @return void */ public function indexAction() { /** * Does the common work */ require 'libraries/server_common.inc.php'; /** * Displays the sub-page heading */ $this->response->addHTML(PMA_getHtmlForSubPageHeader('engines')); /** * Did the user request information about a certain storage engine? */ if (empty($_REQUEST['engine']) || !StorageEngine::isValid($_REQUEST['engine'])) { $this->response->addHTML($this->_getHtmlForAllServerEngines()); } else { $engine = StorageEngine::getEngine($_REQUEST['engine']); $this->response->addHTML($this->_getHtmlForServerEngine($engine)); } }