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

_getHtmlForServerVariablesItems() приватный Метод

Prints Html for Server Variables Items
private _getHtmlForServerVariablesItems ( array $serverVars, array $serverVarsSession ) : string
$serverVars array global variables
$serverVarsSession array session variables
Результат string
    private function _getHtmlForServerVariablesItems($serverVars, $serverVarsSession)
    {
        // list of static (i.e. non-editable) system variables
        $static_variables = $this->_getStaticSystemVariables();
        $output = '';
        foreach ($serverVars as $name => $value) {
            $has_session_value = isset($serverVarsSession[$name]) && $serverVarsSession[$name] != $value;
            $row_class = $has_session_value ? ' diffSession' : '';
            $docLink = isset($this->variable_doc_links[$name]) ? $this->variable_doc_links[$name] : null;
            list($formattedValue, $isHtmlFormatted) = $this->_formatVariable($name, $value);
            $output .= Template::get('server/variables/variable_row')->render(array('rowClass' => $row_class, 'editable' => !in_array(strtolower($name), $static_variables), 'docLink' => $docLink, 'name' => $name, 'value' => $formattedValue, 'isSuperuser' => $this->dbi->isSuperuser(), 'isHtmlFormatted' => $isHtmlFormatted));
            if ($has_session_value) {
                list($formattedValue, $isHtmlFormatted) = $this->_formatVariable($name, $serverVarsSession[$name]);
                $output .= Template::get('server/variables/session_variable_row')->render(array('rowClass' => $row_class, 'value' => $formattedValue, 'isHtmlFormatted' => $isHtmlFormatted));
            }
        }
        return $output;
    }