2024.8.23
|
Static Public Member Functions | |
static | getActionChangeMariadbPort () |
static | getActionChangeMariadbRootPwd () |
static | getActionEnableMariadb ($enable) |
static | getActionInstallMariadbService () |
static | getActionRemoveMariadbService () |
static | getActionSwitchMariadbVersion ($version) |
static | getMenuMariadb () |
static | getMenuMariadbDebug () |
static | getMenuMariadbService () |
static | getMenuMariadbVersions () |
static | process () |
Data Fields | |
const | ACTION_CHANGE_PORT = 'changeMariadbPort' |
const | ACTION_CHANGE_ROOT_PWD = 'changeMariadbRootPwd' |
const | ACTION_ENABLE = 'enableMariadb' |
const | ACTION_INSTALL_SERVICE = 'installMariadbService' |
const | ACTION_REMOVE_SERVICE = 'removeMariadbService' |
const | ACTION_SWITCH_VERSION = 'switchMariadbVersion' |
const | MENU = 'mariadb' |
const | MENU_DEBUG = 'mariadbDebug' |
const | MENU_SERVICE = 'mariadbService' |
const | MENU_VERSIONS = 'mariadbVersions' |
Definition at line 10 of file class.tpl.app.mariadb.php.
|
static |
Generates the action to change the MariaDB port.
This method creates the action string for changing the MariaDB port. It uses the global binaries object to retrieve the necessary values.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 295 of file class.tpl.app.mariadb.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to change the MariaDB root password.
This method creates the action string for changing the MariaDB root password. It uses the global binaries object to retrieve the necessary values.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 313 of file class.tpl.app.mariadb.php.
References $bearsamppBins, Action\CHANGE_DB_ROOT_PWD, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable MariaDB.
This method creates the action string for enabling or disabling MariaDB. It uses the global binaries object to retrieve the necessary values.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The enable flag (1 for enable, 0 for disable). |
Definition at line 158 of file class.tpl.app.mariadb.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install the MariaDB service.
This method creates the action string for installing the MariaDB service.
Definition at line 328 of file class.tpl.app.mariadb.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinMariadb\SERVICE_NAME.
|
static |
Generates the action to remove the MariaDB service.
This method creates the action string for removing the MariaDB service.
Definition at line 341 of file class.tpl.app.mariadb.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinMariadb\SERVICE_NAME.
|
static |
Generates the action to switch the MariaDB version.
This method creates the action string for switching the MariaDB version. It uses the global binaries object to retrieve the necessary values.
@global object $bearsamppBins Provides access to system binaries and their configurations.
string | $version | The version to switch to. |
Definition at line 178 of file class.tpl.app.mariadb.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the MariaDB menu items and actions.
This method creates menu items and actions for managing MariaDB, including enabling/disabling, switching versions, managing services, and debugging. It uses the global language, binaries, and tools objects to retrieve the necessary values.
@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.mariadb.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 MariaDB debug menu items and actions.
This method creates menu items and actions for debugging MariaDB, including checking the version, variables, and syntax. It uses the global language object to retrieve the necessary values.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 267 of file class.tpl.app.mariadb.php.
References $bearsamppLang, BinMariadb\CMD_SYNTAX_CHECK, BinMariadb\CMD_VARIABLES, BinMariadb\CMD_VERSION, Action\DEBUG_MARIADB, Lang\DEBUG_MARIADB_SYNTAX_CHECK, Lang\DEBUG_MARIADB_VARIABLES, Lang\DEBUG_MARIADB_VERSION, TplApp\getActionRun(), and TplAestan\GLYPH_DEBUG.
|
static |
Generates the MariaDB service menu items and actions.
This method creates menu items and actions for managing the MariaDB service, including starting, stopping, restarting, changing the port, and changing the root password. It uses the global language and binaries objects to retrieve the necessary values.
@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 198 of file class.tpl.app.mariadb.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 MariaDB versions menu items and actions.
This method creates menu items and actions for switching between different MariaDB versions. It uses the global binaries object to retrieve the available versions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 123 of file class.tpl.app.mariadb.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Processes the MariaDB menu.
This method generates the MariaDB menu and determines if MariaDB is enabled. It uses the global language and binaries objects to retrieve the necessary values.
@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 35 of file class.tpl.app.mariadb.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\MARIADB.
Referenced by TplApp\getSectionMenuLeft().
const TplAppMariadb::ACTION_CHANGE_PORT = 'changeMariadbPort' |
Definition at line 19 of file class.tpl.app.mariadb.php.
const TplAppMariadb::ACTION_CHANGE_ROOT_PWD = 'changeMariadbRootPwd' |
Definition at line 20 of file class.tpl.app.mariadb.php.
const TplAppMariadb::ACTION_ENABLE = 'enableMariadb' |
Definition at line 17 of file class.tpl.app.mariadb.php.
const TplAppMariadb::ACTION_INSTALL_SERVICE = 'installMariadbService' |
Definition at line 21 of file class.tpl.app.mariadb.php.
const TplAppMariadb::ACTION_REMOVE_SERVICE = 'removeMariadbService' |
Definition at line 22 of file class.tpl.app.mariadb.php.
const TplAppMariadb::ACTION_SWITCH_VERSION = 'switchMariadbVersion' |
Definition at line 18 of file class.tpl.app.mariadb.php.
const TplAppMariadb::MENU = 'mariadb' |
Definition at line 12 of file class.tpl.app.mariadb.php.
const TplAppMariadb::MENU_DEBUG = 'mariadbDebug' |
Definition at line 15 of file class.tpl.app.mariadb.php.
const TplAppMariadb::MENU_SERVICE = 'mariadbService' |
Definition at line 14 of file class.tpl.app.mariadb.php.
const TplAppMariadb::MENU_VERSIONS = 'mariadbVersions' |
Definition at line 13 of file class.tpl.app.mariadb.php.