2024.8.23
|
Static Public Member Functions | |
static | getActionChangeMailpitPort () |
static | getActionEnableMailpit ($enable) |
static | getActionInstallMailpitService () |
static | getActionRemoveMailpitService () |
static | getActionSwitchMailpitVersion ($version) |
static | getMenuMailpit () |
static | getMenuMailpitService () |
static | getMenuMailpitVersions () |
static | process () |
Data Fields | |
const | ACTION_CHANGE_PORT = 'changeMailpitPort' |
const | ACTION_ENABLE = 'enableMailpit' |
const | ACTION_INSTALL_SERVICE = 'installMailpitService' |
const | ACTION_REMOVE_SERVICE = 'removeMailpitService' |
const | ACTION_SWITCH_VERSION = 'switchMailpitVersion' |
const | MENU = 'mailpit' |
const | MENU_SERVICE = 'mailpitService' |
const | MENU_VERSIONS = 'mailpitVersions' |
Class TplAppMailpit
This class provides methods to generate menus and actions for managing the Mailpit application. It includes functionalities for enabling/disabling Mailpit, switching versions, changing ports, and managing the Mailpit service.
Definition at line 17 of file class.tpl.app.mailpit.php.
|
static |
Generates the action to change the Mailpit port.
This method creates the action string for changing the Mailpit port and includes a command to reload the application.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 249 of file class.tpl.app.mailpit.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable Mailpit.
This method creates the action string for enabling or disabling Mailpit 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 154 of file class.tpl.app.mailpit.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install the Mailpit service.
This method creates the action string for installing the Mailpit service and includes a command to reload the application.
Definition at line 264 of file class.tpl.app.mailpit.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinMailpit\SERVICE_NAME.
|
static |
Generates the action to remove the Mailpit service.
This method creates the action string for removing the Mailpit service and includes a command to reload the application.
Definition at line 277 of file class.tpl.app.mailpit.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinMailpit\SERVICE_NAME.
|
static |
Generates the action to switch the Mailpit version.
This method creates the action string for switching the Mailpit 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 172 of file class.tpl.app.mailpit.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the Mailpit menu.
This method creates the menu items and associated actions for Mailpit, 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 60 of file class.tpl.app.mailpit.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\MAILPIT, Lang\MENU_ENABLE, Lang\MENU_LOGS, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, Lang\SERVICE, and Lang\VERSIONS.
|
static |
Generates the Mailpit service menu.
This method creates the menu items and associated actions for managing the Mailpit 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 192 of file class.tpl.app.mailpit.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 Mailpit versions menu.
This method creates the menu items and associated actions for switching between different versions of Mailpit.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 121 of file class.tpl.app.mailpit.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Processes the Mailpit menu.
This method generates the menu for enabling or disabling Mailpit. It uses the global language object to retrieve the localized string for Mailpit.
@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.mailpit.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\MAILPIT.
Referenced by TplApp\getSectionMenuLeft().
const TplAppMailpit::ACTION_CHANGE_PORT = 'changeMailpitPort' |
Definition at line 25 of file class.tpl.app.mailpit.php.
const TplAppMailpit::ACTION_ENABLE = 'enableMailpit' |
Definition at line 23 of file class.tpl.app.mailpit.php.
const TplAppMailpit::ACTION_INSTALL_SERVICE = 'installMailpitService' |
Definition at line 26 of file class.tpl.app.mailpit.php.
const TplAppMailpit::ACTION_REMOVE_SERVICE = 'removeMailpitService' |
Definition at line 27 of file class.tpl.app.mailpit.php.
const TplAppMailpit::ACTION_SWITCH_VERSION = 'switchMailpitVersion' |
Definition at line 24 of file class.tpl.app.mailpit.php.
const TplAppMailpit::MENU = 'mailpit' |
Definition at line 19 of file class.tpl.app.mailpit.php.
const TplAppMailpit::MENU_SERVICE = 'mailpitService' |
Definition at line 21 of file class.tpl.app.mailpit.php.
const TplAppMailpit::MENU_VERSIONS = 'mailpitVersions' |
Definition at line 20 of file class.tpl.app.mailpit.php.