2024.8.23
|
Go to the source code of this file.
Variables | |
global | $bearsamppBins |
global | $bearsamppLang |
$port = $bearsamppBins->getPostgresql()->getPort() | |
$result | |
$textDisabled = $bearsamppLang->getValue(Lang::DISABLED) | |
$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED) | |
$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED) | |
if($bearsamppBins->getPostgresql() ->isEnable()) | else |
foreach ( $bearsamppBins->getPostgresql() ->getVersionList() as $version) | |
global $bearsamppBins |
Definition at line 10 of file ajax.postgresql.php.
global $bearsamppLang |
Definition at line 10 of file ajax.postgresql.php.
$port = $bearsamppBins->getPostgresql()->getPort() |
Definition at line 29 of file ajax.postgresql.php.
$result |
This script retrieves information about the PostgreSQL service status and versions. It checks if the PostgreSQL service is enabled, checks the port, and displays a corresponding badge. It also retrieves the list of PostgreSQL versions and displays them as badges. The final result is encoded in JSON format and returned.
@global object $bearsamppBins Provides access to various binaries including PostgreSQL. @global object $bearsamppLang Provides access to language strings for localization.
Definition at line 23 of file ajax.postgresql.php.
$textDisabled = $bearsamppLang->getValue(Lang::DISABLED) |
Definition at line 33 of file ajax.postgresql.php.
$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED) |
Definition at line 31 of file ajax.postgresql.php.
$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED) |
Definition at line 32 of file ajax.postgresql.php.
if ( $bearsamppBins->getPostgresql() ->isEnable()) else |
Check if PostgreSQL service is enabled and update the result array with the port status. If the service is enabled, it checks if the port is open and updates the status accordingly. If the service is disabled, it sets the status to disabled.
Definition at line 46 of file ajax.postgresql.php.
foreach($bearsamppBins->getPostgresql() ->getVersionList() as $version) | ( | $bearsamppBins->getPostgresql() ->getVersionList() as | ) |
Retrieve the list of PostgreSQL versions and update the result array. The current version is highlighted with a primary badge, while other versions are displayed with a secondary badge.
Definition at line 54 of file ajax.postgresql.php.