2024.8.23
|
Static Public Member Functions | |
static | getActionChangePostgresqlPort () |
static | getActionChangePostgresqlRootPwd () |
static | getActionEnablePostgresql ($enable) |
static | getActionInstallPostgresqlService () |
static | getActionRemovePostgresqlService () |
static | getActionSwitchPostgresqlVersion ($version) |
static | getMenuPostgresql () |
static | getMenuPostgresqlDebug () |
static | getMenuPostgresqlService () |
static | getMenuPostgresqlVersions () |
static | process () |
Data Fields | |
const | ACTION_CHANGE_PORT = 'changePostgresqlPort' |
const | ACTION_CHANGE_ROOT_PWD = 'changePostgresqlRootPwd' |
const | ACTION_ENABLE = 'enablePostgresql' |
const | ACTION_INSTALL_SERVICE = 'installPostgresqlService' |
const | ACTION_REMOVE_SERVICE = 'removePostgresqlService' |
const | ACTION_SWITCH_VERSION = 'switchPostgresqlVersion' |
const | MENU = 'postgresql' |
const | MENU_DEBUG = 'postgresqlDebug' |
const | MENU_SERVICE = 'postgresqlService' |
const | MENU_VERSIONS = 'postgresqlVersions' |
Class TplAppPostgresql
This class provides methods to generate menu items and actions for managing PostgreSQL services within the Bearsampp application. It includes functionalities for enabling/disabling PostgreSQL, switching versions, changing ports, changing root passwords, and managing services.
Definition at line 17 of file class.tpl.app.postgresql.php.
|
static |
Generates the action to change the PostgreSQL port.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 267 of file class.tpl.app.postgresql.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to change the PostgreSQL root password.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 282 of file class.tpl.app.postgresql.php.
References $bearsamppBins, Action\CHANGE_DB_ROOT_PWD, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable PostgreSQL.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The flag to enable (1) or disable (0) PostgreSQL. |
Definition at line 152 of file class.tpl.app.postgresql.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install the PostgreSQL service.
Definition at line 295 of file class.tpl.app.postgresql.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinPostgresql\SERVICE_NAME.
|
static |
Generates the action to remove the PostgreSQL service.
Definition at line 306 of file class.tpl.app.postgresql.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinPostgresql\SERVICE_NAME.
|
static |
Generates the action to switch the PostgreSQL version.
@global object $bearsamppBins Provides access to system binaries and their configurations.
string | $version | The version to switch to. |
Definition at line 168 of file class.tpl.app.postgresql.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the PostgreSQL menu with options for versions, service, debug, and console access.
@global object $bearsamppBins Provides access to system binaries and their configurations. @global object $bearsamppLang Provides language support for retrieving language-specific values. @global object $bearsamppTools Provides access to various tools and utilities.
Definition at line 55 of file class.tpl.app.postgresql.php.
References $bearsamppBins, $bearsamppLang, Lang\CONSOLE, Lang\DEBUG, Config\DISABLED, Lang\DOWNLOAD_MORE, Config\ENABLED, TplApp\getActionMulti(), TplAestan\getItemConsoleZ(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAestan\getItemSeparator(), TplApp\getMenu(), Util\getWebsiteUrl(), TplAestan\GLYPH_BROWSER, TplAestan\GLYPH_CHECK, TplAestan\GLYPH_CONSOLEZ, Lang\MENU_ENABLE, Lang\MENU_ERROR_LOGS, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, Lang\SERVICE, and Lang\VERSIONS.
|
static |
Generates the PostgreSQL debug menu with options to run various debug commands.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 250 of file class.tpl.app.postgresql.php.
References $bearsamppLang, BinPostgresql\CMD_VERSION, Action\DEBUG_POSTGRESQL, Lang\DEBUG_POSTGRESQL_VERSION, TplApp\getActionRun(), and TplAestan\GLYPH_DEBUG.
|
static |
Generates the PostgreSQL service menu with options to start, stop, restart, and manage the service.
@global object $bearsamppLang Provides language support for retrieving language-specific values. @global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 184 of file class.tpl.app.postgresql.php.
References $bearsamppBins, $bearsamppLang, $result, Action\CHECK_PORT, TplApp\getActionMulti(), TplApp\getActionRun(), TplAestan\getItemActionServiceRestart(), TplAestan\getItemActionServiceStart(), TplAestan\getItemActionServiceStop(), TplAestan\getItemSeparator(), TplAestan\GLYPH_LIGHT, TplAestan\GLYPH_NETWORK, TplAestan\GLYPH_PASSWORD, TplAestan\GLYPH_SERVICE_INSTALL, TplAestan\GLYPH_SERVICE_REMOVE, Lang\MENU_CHANGE_PORT, Lang\MENU_CHANGE_ROOT_PWD, Lang\MENU_CHECK_PORT, Lang\MENU_INSTALL_SERVICE, Lang\MENU_REMOVE_SERVICE, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the PostgreSQL versions menu with options to switch between different versions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 121 of file class.tpl.app.postgresql.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the main PostgreSQL menu with options to enable/disable PostgreSQL and access submenus.
@global object $bearsamppLang Provides language support for retrieving language-specific values. @global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 39 of file class.tpl.app.postgresql.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\POSTGRESQL.
Referenced by TplApp\getSectionMenuLeft().
const TplAppPostgresql::ACTION_CHANGE_PORT = 'changePostgresqlPort' |
Definition at line 26 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::ACTION_CHANGE_ROOT_PWD = 'changePostgresqlRootPwd' |
Definition at line 27 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::ACTION_ENABLE = 'enablePostgresql' |
Definition at line 24 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::ACTION_INSTALL_SERVICE = 'installPostgresqlService' |
Definition at line 28 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::ACTION_REMOVE_SERVICE = 'removePostgresqlService' |
Definition at line 29 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::ACTION_SWITCH_VERSION = 'switchPostgresqlVersion' |
Definition at line 25 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::MENU = 'postgresql' |
Definition at line 19 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::MENU_DEBUG = 'postgresqlDebug' |
Definition at line 22 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::MENU_SERVICE = 'postgresqlService' |
Definition at line 21 of file class.tpl.app.postgresql.php.
const TplAppPostgresql::MENU_VERSIONS = 'postgresqlVersions' |
Definition at line 20 of file class.tpl.app.postgresql.php.