2024.8.23
|
Static Public Member Functions | |
static | getActionChangeMemcachedPort () |
static | getActionEnableMemcached ($enable) |
static | getActionInstallMemcachedService () |
static | getActionRemoveMemcachedService () |
static | getActionSwitchMemcachedVersion ($version) |
static | getMenuMemcached () |
static | getMenuMemcachedService () |
static | getMenuMemcachedVersions () |
static | process () |
Data Fields | |
const | ACTION_CHANGE_PORT = 'changeMemcachedPort' |
const | ACTION_ENABLE = 'enableMemcached' |
const | ACTION_INSTALL_SERVICE = 'installMemcachedService' |
const | ACTION_REMOVE_SERVICE = 'removeMemcachedService' |
const | ACTION_SWITCH_VERSION = 'switchMemcachedVersion' |
const | MENU = 'memcached' |
const | MENU_SERVICE = 'memcachedService' |
const | MENU_VERSIONS = 'memcachedVersions' |
Class TplAppMemcached
This class provides methods to generate menu items and actions for managing Memcached within the Bearsampp application. It includes functionalities for enabling/disabling Memcached, switching versions, changing ports, and managing services.
Definition at line 16 of file class.tpl.app.memcached.php.
|
static |
Generates the action to change the Memcached port.
This method creates the action string for changing the Memcached port. It includes commands to reload the application after the action is performed.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 245 of file class.tpl.app.memcached.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable Memcached.
This method creates the action string for enabling or disabling Memcached. It includes commands to reload the application after the action is performed.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The value indicating whether to enable or disable Memcached. |
Definition at line 149 of file class.tpl.app.memcached.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install the Memcached service.
This method creates the action string for installing the Memcached service. It includes commands to reload the application after the action is performed.
Definition at line 261 of file class.tpl.app.memcached.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinMemcached\SERVICE_NAME.
|
static |
Generates the action to remove the Memcached service.
This method creates the action string for removing the Memcached service. It includes commands to reload the application after the action is performed.
Definition at line 275 of file class.tpl.app.memcached.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinMemcached\SERVICE_NAME.
|
static |
Generates the action to switch Memcached versions.
This method creates the action string for switching Memcached versions. It includes commands to reload the application after the action is performed.
@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.memcached.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the menu items and actions for managing Memcached.
This method creates menu items for downloading Memcached, enabling/disabling it, switching versions, managing services, updating the environment PATH, and viewing logs. It uses the global language object to retrieve localized strings.
@global object $bearsamppRoot Provides access to the root path of the application. @global object $bearsamppBins Provides access to system binaries and their configurations. @global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 59 of file class.tpl.app.memcached.php.
References $bearsamppBins, $bearsamppLang, $bearsamppRoot, Config\DISABLED, Lang\DOWNLOAD_MORE, Config\ENABLED, TplApp\getActionMulti(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAestan\getItemSeparator(), TplApp\getMenu(), Util\getWebsiteUrl(), TplAestan\GLYPH_BROWSER, TplAestan\GLYPH_CHECK, Lang\MENU_ENABLE, Lang\MENU_LOGS, Lang\MENU_UPDATE_ENV_PATH, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, Lang\SERVICE, and Lang\VERSIONS.
|
static |
Generates the menu items and actions for managing Memcached services.
This method creates menu items for starting, stopping, and restarting the Memcached service, as well as checking and changing the port, and installing or removing the service. It uses the global language object to retrieve localized strings.
@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 188 of file class.tpl.app.memcached.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_SERVICE_INSTALL, TplAestan\GLYPH_SERVICE_REMOVE, Lang\MENU_CHANGE_PORT, Lang\MENU_CHECK_PORT, Lang\MENU_INSTALL_SERVICE, Lang\MENU_REMOVE_SERVICE, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the menu items and actions for switching Memcached versions.
This method creates menu items for each available Memcached version and defines the actions to be taken when a version is selected. It uses the global language object to retrieve localized strings.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 115 of file class.tpl.app.memcached.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the menu item for enabling/disabling Memcached.
This method creates a menu item for enabling or disabling Memcached and defines the actions to be taken when the menu item is selected. It uses the global language object to retrieve the localized string for Memcached.
@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 40 of file class.tpl.app.memcached.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\MEMCACHED.
Referenced by TplApp\getSectionMenuLeft().
const TplAppMemcached::ACTION_CHANGE_PORT = 'changeMemcachedPort' |
Definition at line 25 of file class.tpl.app.memcached.php.
const TplAppMemcached::ACTION_ENABLE = 'enableMemcached' |
Definition at line 23 of file class.tpl.app.memcached.php.
const TplAppMemcached::ACTION_INSTALL_SERVICE = 'installMemcachedService' |
Definition at line 26 of file class.tpl.app.memcached.php.
const TplAppMemcached::ACTION_REMOVE_SERVICE = 'removeMemcachedService' |
Definition at line 27 of file class.tpl.app.memcached.php.
const TplAppMemcached::ACTION_SWITCH_VERSION = 'switchMemcachedVersion' |
Definition at line 24 of file class.tpl.app.memcached.php.
const TplAppMemcached::MENU = 'memcached' |
Definition at line 19 of file class.tpl.app.memcached.php.
const TplAppMemcached::MENU_SERVICE = 'memcachedService' |
Definition at line 21 of file class.tpl.app.memcached.php.
const TplAppMemcached::MENU_VERSIONS = 'memcachedVersions' |
Definition at line 20 of file class.tpl.app.memcached.php.