2024.8.23
|
Static Public Member Functions | |
static | getActionChangeMysqlPort () |
static | getActionChangeMysqlRootPwd () |
static | getActionEnableMysql ($enable) |
static | getActionInstallMysqlService () |
static | getActionRemoveMysqlService () |
static | getActionSwitchMysqlVersion ($version) |
static | getMenuMysql () |
static | getMenuMysqlDebug () |
static | getMenuMysqlService () |
static | getMenuMysqlVersions () |
static | process () |
Data Fields | |
const | ACTION_CHANGE_PORT = 'changeMysqlPort' |
const | ACTION_CHANGE_ROOT_PWD = 'changeMysqlRootPwd' |
const | ACTION_ENABLE = 'enableMysql' |
const | ACTION_INSTALL_SERVICE = 'installMysqlService' |
const | ACTION_REMOVE_SERVICE = 'removeMysqlService' |
const | ACTION_SWITCH_VERSION = 'switchMysqlVersion' |
const | MENU = 'mysql' |
const | MENU_DEBUG = 'mysqlDebug' |
const | MENU_SERVICE = 'mysqlService' |
const | MENU_VERSIONS = 'mysqlVersions' |
Class TplAppMysql
This class provides methods to generate and manage menu items, actions, and sections related to MySQL within the Bearsampp application. It includes functionalities for enabling/disabling MySQL, switching versions, changing ports, managing services, and debugging.
Definition at line 17 of file class.tpl.app.mysql.php.
|
static |
Generates the action to change MySQL port.
This method creates the action string for changing the MySQL port.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 294 of file class.tpl.app.mysql.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to change MySQL root password.
This method creates the action string for changing the MySQL root password.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 311 of file class.tpl.app.mysql.php.
References $bearsamppBins, Action\CHANGE_DB_ROOT_PWD, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable MySQL.
This method creates the action string for enabling or disabling MySQL.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The enable/disable flag (1 for enable, 0 for disable). |
Definition at line 161 of file class.tpl.app.mysql.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install MySQL service.
This method creates the action string for installing the MySQL service.
Definition at line 326 of file class.tpl.app.mysql.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinMysql\SERVICE_NAME.
|
static |
Generates the action to remove MySQL service.
This method creates the action string for removing the MySQL service.
Definition at line 339 of file class.tpl.app.mysql.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinMysql\SERVICE_NAME.
|
static |
Generates the action to switch MySQL version.
This method creates the action string for switching to a different MySQL version.
@global object $bearsamppBins Provides access to system binaries and their configurations.
string | $version | The version to switch to. |
Definition at line 179 of file class.tpl.app.mysql.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the MySQL menu items and actions.
This method creates menu items and actions for MySQL, including download links, enabling/disabling, version switching, service management, debugging, and configuration file 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 used in the application.
Definition at line 61 of file class.tpl.app.mysql.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 MySQL debug menu.
This method creates menu items and actions for debugging MySQL, including checking version, variables, and syntax.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 267 of file class.tpl.app.mysql.php.
References $bearsamppLang, BinMysql\CMD_SYNTAX_CHECK, BinMysql\CMD_VARIABLES, BinMysql\CMD_VERSION, Action\DEBUG_MYSQL, Lang\DEBUG_MYSQL_SYNTAX_CHECK, Lang\DEBUG_MYSQL_VARIABLES, Lang\DEBUG_MYSQL_VERSION, TplApp\getActionRun(), and TplAestan\GLYPH_DEBUG.
|
static |
Generates the MySQL service menu.
This method creates menu items and actions for managing MySQL services, including starting, stopping, restarting, changing ports, and managing root passwords.
@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.mysql.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 MySQL versions menu.
This method creates menu items and actions for switching between different MySQL versions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 128 of file class.tpl.app.mysql.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Processes and generates the MySQL menu.
This method generates the MySQL menu and determines if MySQL is enabled.
@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 42 of file class.tpl.app.mysql.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\MYSQL.
Referenced by TplApp\getSectionMenuLeft().
const TplAppMysql::ACTION_CHANGE_PORT = 'changeMysqlPort' |
Definition at line 27 of file class.tpl.app.mysql.php.
const TplAppMysql::ACTION_CHANGE_ROOT_PWD = 'changeMysqlRootPwd' |
Definition at line 28 of file class.tpl.app.mysql.php.
const TplAppMysql::ACTION_ENABLE = 'enableMysql' |
Definition at line 25 of file class.tpl.app.mysql.php.
const TplAppMysql::ACTION_INSTALL_SERVICE = 'installMysqlService' |
Definition at line 29 of file class.tpl.app.mysql.php.
const TplAppMysql::ACTION_REMOVE_SERVICE = 'removeMysqlService' |
Definition at line 30 of file class.tpl.app.mysql.php.
const TplAppMysql::ACTION_SWITCH_VERSION = 'switchMysqlVersion' |
Definition at line 26 of file class.tpl.app.mysql.php.
const TplAppMysql::MENU = 'mysql' |
Definition at line 20 of file class.tpl.app.mysql.php.
const TplAppMysql::MENU_DEBUG = 'mysqlDebug' |
Definition at line 23 of file class.tpl.app.mysql.php.
const TplAppMysql::MENU_SERVICE = 'mysqlService' |
Definition at line 22 of file class.tpl.app.mysql.php.
const TplAppMysql::MENU_VERSIONS = 'mysqlVersions' |
Definition at line 21 of file class.tpl.app.mysql.php.