PHP Класс PMA\libraries\ServerStatusData

All properties of the class are read-only TODO: Use lazy initialisation for some of the properties since not all of the server_status_*.php pages need all the data that this class provides.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$allocationMap
$dataLoaded
$db_isLocal
$links
$section
$sectionUsed
$sections
$selfUrl
$status
$used_queries
$variables

Открытые методы

Метод Описание
__construct ( ) Constructor
__set ( string $a, mixed $b ) : void An empty setter makes the above properties read-only
cleanDeprecated ( array $server_status ) : array cleanup of some deprecated values
getHtmlForRefreshList ( string $name, integer $defaultRate = 5, array $refreshRates = [1, 2, 5, 10, 20, 40, 60, 120, 300, 600] ) : string Builds a
getMenuHtml ( ) : string Generates menu HTML

Приватные методы

Метод Описание
_calculateValues ( array $server_status, array $server_variables ) : array Calculate some values
_getAllocations ( ) : array Gets the allocations for constructor
_getLinks ( ) : array Gets the links for constructor
_getSections ( ) : array Gets the sections for constructor
_sortVariables ( array $server_status, array $allocations, array $allocationMap, array $sectionUsed, array $used_queries ) : array Sort variables into arrays

Описание методов

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

Constructor
public __construct ( )

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

An empty setter makes the above properties read-only
public __set ( string $a, mixed $b ) : void
$a string key
$b mixed value
Результат void

cleanDeprecated() публичный статический Метод

cleanup of some deprecated values
public static cleanDeprecated ( array $server_status ) : array
$server_status array status array to process
Результат array

getHtmlForRefreshList() публичный статический Метод

Builds a