PHP Class 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.
Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Public Properties

Property Type Description
$allocationMap
$dataLoaded
$db_isLocal
$links
$section
$sectionUsed
$sections
$selfUrl
$status
$used_queries
$variables

Public Methods

Method Description
__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

Private Methods

Method Description
_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

Method Details

__construct() public method

Constructor
public __construct ( )

__set() public method

An empty setter makes the above properties read-only
public __set ( string $a, mixed $b ) : void
$a string key
$b mixed value
return void

cleanDeprecated() public static method

cleanup of some deprecated values
public static cleanDeprecated ( array $server_status ) : array
$server_status array status array to process
return array

getHtmlForRefreshList() public static method

Builds a