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 read-only $status
array<string,string> $sections
array $variables
array read-only $usedQueries
string[] $allocationMap
$links
bool $dbIsLocal
true[] $sectionUsed
bool read-only $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