PMA\libraries\controllers\server\ServerVariablesController::getValueAction PHP Метод

getValueAction() публичный Метод

Handle the AJAX request for a single variable value
public getValueAction ( ) : void
Результат void
    public function getValueAction()
    {
        // Send with correct charset
        header('Content-Type: text/html; charset=UTF-8');
        // Do not use double quotes inside the query to avoid a problem
        // when server is running in ANSI_QUOTES sql_mode
        $varValue = $this->dbi->fetchSingleRow('SHOW GLOBAL VARIABLES WHERE Variable_name=\'' . $GLOBALS['dbi']->escapeString($_REQUEST['varName']) . '\';', 'NUM');
        if (isset($this->variable_doc_links[$_REQUEST['varName']][3]) && $this->variable_doc_links[$_REQUEST['varName']][3] == 'byte') {
            $this->response->addJSON('message', implode(' ', Util::formatByteDown($varValue[1], 3, 3)));
        } else {
            $this->response->addJSON('message', $varValue[1]);
        }
    }