![]() |
Bearsampp 2026.9.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' |
Class TplAppMariadb
This class provides methods to generate menu items and actions for managing MariaDB within the Bearsampp application. It includes functionalities for enabling/disabling MariaDB, switching versions, changing ports and root passwords, and managing services.
Definition at line 17 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.
Definition at line 322 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.
Definition at line 340 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.
| int | $enable | The enable flag (1 for enable, 0 for disable). |
Definition at line 173 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 355 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 368 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.
| string | $version | The version to switch to. |
Definition at line 193 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.
Definition at line 62 of file class.tpl.app.mariadb.php.
References $bearsamppBins, $bearsamppLang, Lang\CONSOLE, Lang\DEBUG, Config\DISABLED, Lang\DOWNLOAD_MORE, Config\ENABLED, TplApp\getActionMulti(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAestan\getItemPowerShell(), TplAestan\getItemSeparator(), TplApp\getMenu(), Path\getModuleSymlinkPath(), HttpClient\getWebsiteUrl(), TplAestan\GLYPH_BROWSER, TplAestan\GLYPH_CHECK, TplAestan\GLYPH_POWERSHELL, 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.
Definition at line 291 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.
Definition at line 213 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.
Definition at line 136 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.
Definition at line 42 of file class.tpl.app.mariadb.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\MARIADB.
Referenced by TplApp\getSectionMenuLeft().
| const ACTION_CHANGE_PORT = 'changeMariadbPort' |
Definition at line 26 of file class.tpl.app.mariadb.php.
| const ACTION_CHANGE_ROOT_PWD = 'changeMariadbRootPwd' |
Definition at line 27 of file class.tpl.app.mariadb.php.
| const ACTION_ENABLE = 'enableMariadb' |
Definition at line 24 of file class.tpl.app.mariadb.php.
| const ACTION_INSTALL_SERVICE = 'installMariadbService' |
Definition at line 28 of file class.tpl.app.mariadb.php.
| const ACTION_REMOVE_SERVICE = 'removeMariadbService' |
Definition at line 29 of file class.tpl.app.mariadb.php.
| const ACTION_SWITCH_VERSION = 'switchMariadbVersion' |
Definition at line 25 of file class.tpl.app.mariadb.php.
| const MENU = 'mariadb' |
Definition at line 19 of file class.tpl.app.mariadb.php.
| const MENU_DEBUG = 'mariadbDebug' |
Definition at line 22 of file class.tpl.app.mariadb.php.
| const MENU_SERVICE = 'mariadbService' |
Definition at line 21 of file class.tpl.app.mariadb.php.
| const MENU_VERSIONS = 'mariadbVersions' |
Definition at line 20 of file class.tpl.app.mariadb.php.