2024.8.23
|
Static Public Member Functions | |
static | getActionChangeMailhogPort () |
static | getActionEnableMailhog ($enable) |
static | getActionInstallMailhogService () |
static | getActionRemoveMailhogService () |
static | getActionSwitchMailhogVersion ($version) |
static | getMenuMailhog () |
static | getMenuMailhogService () |
static | getMenuMailhogVersions () |
static | process () |
Data Fields | |
const | ACTION_CHANGE_PORT = 'changeMailhogPort' |
const | ACTION_ENABLE = 'enableMailhog' |
const | ACTION_INSTALL_SERVICE = 'installMailhogService' |
const | ACTION_REMOVE_SERVICE = 'removeMailhogService' |
const | ACTION_SWITCH_VERSION = 'switchMailhogVersion' |
const | MENU = 'mailhog' |
const | MENU_SERVICE = 'mailhogService' |
const | MENU_VERSIONS = 'mailhogVersions' |
Class TplAppMailhog
This class provides methods to generate menus and actions for managing Mailhog within the Bearsampp application. It includes functionalities for enabling/disabling Mailhog, switching versions, changing ports, and managing the service.
Definition at line 16 of file class.tpl.app.mailhog.php.
|
static |
Generates the action to change the Mailhog port.
This method creates the action string for changing the Mailhog port and includes a command to reload the application.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 248 of file class.tpl.app.mailhog.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable Mailhog.
This method creates the action string for enabling or disabling Mailhog and includes a command to reload the application.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The enable flag (1 to enable, 0 to disable). |
Definition at line 153 of file class.tpl.app.mailhog.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install the Mailhog service.
This method creates the action string for installing the Mailhog service and includes a command to reload the application.
Definition at line 263 of file class.tpl.app.mailhog.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinMailhog\SERVICE_NAME.
|
static |
Generates the action to remove the Mailhog service.
This method creates the action string for removing the Mailhog service and includes a command to reload the application.
Definition at line 276 of file class.tpl.app.mailhog.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinMailhog\SERVICE_NAME.
|
static |
Generates the action to switch the Mailhog version.
This method creates the action string for switching the Mailhog version and includes a command to reload the application.
@global object $bearsamppBins Provides access to system binaries and their configurations.
string | $version | The version to switch to. |
Definition at line 171 of file class.tpl.app.mailhog.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the Mailhog menu.
This method creates the menu items and associated actions for Mailhog, including options for downloading, enabling, switching versions, managing the service, and viewing logs.
@global object $bearsamppRoot Provides access to the root path of the application. @global object $bearsamppConfig Provides access to the application configuration. @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.mailhog.php.
References $bearsamppBins, $bearsamppConfig, $bearsamppLang, $bearsamppRoot, Config\DISABLED, Lang\DOWNLOAD_MORE, Config\ENABLED, TplApp\getActionMulti(), TplAestan\getItemExe(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAestan\getItemSeparator(), TplApp\getMenu(), Util\getWebsiteUrl(), TplAestan\GLYPH_BROWSER, TplAestan\GLYPH_CHECK, TplAestan\GLYPH_WEB_PAGE, Lang\MAILHOG, Lang\MENU_ENABLE, Lang\MENU_LOGS, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, Lang\SERVICE, and Lang\VERSIONS.
|
static |
Generates the Mailhog service menu.
This method creates the menu items and associated actions for managing the Mailhog service, including starting, stopping, restarting, changing ports, and installing or removing the service.
@global object $bearsamppRoot Provides access to the root path of the application. @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 191 of file class.tpl.app.mailhog.php.
References $bearsamppBins, $bearsamppLang, $bearsamppRoot, $result, Action\CHECK_PORT, TplApp\getActionMulti(), TplApp\getActionRun(), TplAestan\getItemActionServiceRestart(), TplAestan\getItemActionServiceStart(), TplAestan\getItemActionServiceStop(), TplAestan\getItemNotepad(), 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, Lang\MENU_UPDATE_ENV_PATH, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the Mailhog versions menu.
This method creates the menu items and associated actions for switching between different versions of Mailhog.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 120 of file class.tpl.app.mailhog.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Processes the Mailhog menu.
This method generates the menu for enabling or disabling Mailhog. It uses the global language object to retrieve the localized string for Mailhog.
@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.mailhog.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\MAILHOG.
Referenced by TplApp\getSectionMenuLeft().
const TplAppMailhog::ACTION_CHANGE_PORT = 'changeMailhogPort' |
Definition at line 24 of file class.tpl.app.mailhog.php.
const TplAppMailhog::ACTION_ENABLE = 'enableMailhog' |
Definition at line 22 of file class.tpl.app.mailhog.php.
const TplAppMailhog::ACTION_INSTALL_SERVICE = 'installMailhogService' |
Definition at line 25 of file class.tpl.app.mailhog.php.
const TplAppMailhog::ACTION_REMOVE_SERVICE = 'removeMailhogService' |
Definition at line 26 of file class.tpl.app.mailhog.php.
const TplAppMailhog::ACTION_SWITCH_VERSION = 'switchMailhogVersion' |
Definition at line 23 of file class.tpl.app.mailhog.php.
const TplAppMailhog::MENU = 'mailhog' |
Definition at line 18 of file class.tpl.app.mailhog.php.
const TplAppMailhog::MENU_SERVICE = 'mailhogService' |
Definition at line 20 of file class.tpl.app.mailhog.php.
const TplAppMailhog::MENU_VERSIONS = 'mailhogVersions' |
Definition at line 19 of file class.tpl.app.mailhog.php.