final class Data (View source)

This class provides data about the server status

TODO: Use lazy initialisation for some of the properties since not all of the serverstatus*.php pages need all the data that this class provides.

Constants

private ALLOCATIONS

variable name => section variable names match when they begin with the given string

Properties

array<string,string|int|float> $status
array<string,string> $sections
array<string,string> $variables
array<string,string|int|float> $usedQueries
string[] $allocationMap
$links
bool $dbIsLocal
true[] $sectionUsed
bool $dataLoaded

Methods

__construct(DatabaseInterface $dbi, Config $config)

No description

static array
cleanDeprecated(array $serverStatus)

cleanup of some deprecated values

Details

ReplicationInfo getReplicationInfo()

No description

Return Value

ReplicationInfo

__construct(DatabaseInterface $dbi, Config $config)

No description

Parameters

DatabaseInterface $dbi
Config $config

static array cleanDeprecated(array $serverStatus)

cleanup of some deprecated values

Parameters

array $serverStatus

status array to process

Return Value

array