2024.8.23
|
Static Public Member Functions | |
static | getActionAddAlias () |
static | getActionAddVhost () |
static | getActionChangeApachePort () |
static | getActionEditAlias ($alias) |
static | getActionEditVhost ($vhost) |
static | getActionEnableApache ($enable) |
static | getActionInstallApacheService () |
static | getActionRemoveApacheService () |
static | getActionSwitchApacheModule ($module, $switch) |
static | getActionSwitchApacheVersion ($version) |
static | getMenuApache () |
static | getMenuApacheAlias () |
static | getMenuApacheDebug () |
static | getMenuApacheModules () |
static | getMenuApacheService () |
static | getMenuApacheVersions () |
static | getMenuApacheVhosts () |
static | process () |
Data Fields | |
const | ACTION_ADD_ALIAS = 'addAlias' |
const | ACTION_ADD_VHOST = 'addVhost' |
const | ACTION_CHANGE_PORT = 'changeApachePort' |
const | ACTION_EDIT_ALIAS = 'editAlias' |
const | ACTION_EDIT_VHOST = 'editVhost' |
const | ACTION_ENABLE = 'enableApache' |
const | ACTION_INSTALL_SERVICE = 'installApacheService' |
const | ACTION_REMOVE_SERVICE = 'removeApacheService' |
const | ACTION_SWITCH_MODULE = 'switchApacheModule' |
const | ACTION_SWITCH_VERSION = 'switchApacheVersion' |
const | MENU = 'apache' |
const | MENU_ALIAS = 'apacheAlias' |
const | MENU_DEBUG = 'apacheDebug' |
const | MENU_MODULES = 'apacheModules' |
const | MENU_SERVICE = 'apacheService' |
const | MENU_VERSIONS = 'apacheVersions' |
const | MENU_VHOSTS = 'apacheVhosts' |
Class TplAppApache
This class provides methods to generate menu items and actions for managing Apache services within the Bearsampp application. It includes functionalities for enabling/disabling Apache, switching versions, changing ports, managing modules, aliases, and virtual hosts.
Definition at line 17 of file class.tpl.app.apache.php.
|
static |
Generates the action to add an Apache alias.
Definition at line 433 of file class.tpl.app.apache.php.
References Action\ADD_ALIAS, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to add an Apache Virtual Host (Vhost).
Definition at line 498 of file class.tpl.app.apache.php.
References Action\ADD_VHOST, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to change the Apache port.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 271 of file class.tpl.app.apache.php.
References $bearsamppBins, Action\CHANGE_PORT, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to edit an Apache alias.
string | $alias | The alias to edit. |
Definition at line 445 of file class.tpl.app.apache.php.
References Action\EDIT_ALIAS, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to edit an Apache Virtual Host (Vhost).
string | $vhost | The Vhost to edit. |
Definition at line 510 of file class.tpl.app.apache.php.
References Action\EDIT_VHOST, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to enable or disable Apache.
@global object $bearsamppBins Provides access to system binaries and their configurations.
int | $enable | The flag to enable (1) or disable (0) Apache. |
Definition at line 181 of file class.tpl.app.apache.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to install the Apache service.
Definition at line 284 of file class.tpl.app.apache.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\INSTALL, Action\SERVICE, and BinApache\SERVICE_NAME.
|
static |
Generates the action to remove the Apache service.
Definition at line 295 of file class.tpl.app.apache.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), ActionService\REMOVE, Action\SERVICE, and BinApache\SERVICE_NAME.
|
static |
Generates the action to switch an Apache module on or off.
string | $module | The module to switch. |
string | $switch | The current switch state of the module. |
Definition at line 379 of file class.tpl.app.apache.php.
References TplAppReload\getActionReload(), TplService\getActionRestart(), TplApp\getActionRun(), BinApache\SERVICE_NAME, Action\SWITCH_APACHE_MODULE, ActionSwitchApacheModule\SWITCH_OFF, and ActionSwitchApacheModule\SWITCH_ON.
|
static |
Generates the action to switch the Apache version.
@global object $bearsamppBins Provides access to system binaries and their configurations.
string | $version | The version to switch to. |
Definition at line 197 of file class.tpl.app.apache.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the Apache menu with options for versions, service, debug, modules, aliases, and virtual hosts.
@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 62 of file class.tpl.app.apache.php.
References $bearsamppBins, $bearsamppLang, Lang\ALIASES, Lang\DEBUG, 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_ACCESS_LOGS, Lang\MENU_ENABLE, Lang\MENU_ERROR_LOGS, Lang\MENU_REWRITE_LOGS, Lang\MODULES, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, Lang\SERVICE, Lang\VERSIONS, and Lang\VIRTUAL_HOSTS.
|
static |
Generates the Apache Alias menu with options to add and edit aliases.
@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 394 of file class.tpl.app.apache.php.
References $bearsamppBins, $bearsamppLang, TplApp\getActionMulti(), TplAestan\getItemSeparator(), TplAestan\GLYPH_ADD, TplAestan\GLYPH_FILE, Lang\MENU_ADD_ALIAS, Lang\MENU_EDIT_ALIAS, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the Apache debug menu with options to run various debug commands.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 308 of file class.tpl.app.apache.php.
References $bearsamppLang, BinApache\CMD_COMPILE_SETTINGS, BinApache\CMD_COMPILED_MODULES, BinApache\CMD_CONFIG_DIRECTIVES, BinApache\CMD_LOADED_MODULES, BinApache\CMD_SYNTAX_CHECK, BinApache\CMD_VERSION_NUMBER, BinApache\CMD_VHOSTS_SETTINGS, Action\DEBUG_APACHE, Lang\DEBUG_APACHE_COMPILE_SETTINGS, Lang\DEBUG_APACHE_COMPILED_MODULES, Lang\DEBUG_APACHE_CONFIG_DIRECTIVES, Lang\DEBUG_APACHE_LOADED_MODULES, Lang\DEBUG_APACHE_SYNTAX_CHECK, Lang\DEBUG_APACHE_VERSION_NUMBER, Lang\DEBUG_APACHE_VHOSTS_SETTINGS, TplApp\getActionRun(), and TplAestan\GLYPH_DEBUG.
|
static |
Generates the Apache modules menu with options to switch modules on or off.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 349 of file class.tpl.app.apache.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, and ActionSwitchApacheModule\SWITCH_ON.
|
static |
Generates the Apache service menu with options to start, stop, restart, and manage 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 213 of file class.tpl.app.apache.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_RED_LIGHT, 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 Apache versions menu with options to switch between different versions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 142 of file class.tpl.app.apache.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplAestan\GLYPH_WARNING, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the Apache Virtual Hosts (Vhosts) menu with options to add and edit Vhosts.
@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 459 of file class.tpl.app.apache.php.
References $bearsamppBins, $bearsamppLang, TplApp\getActionMulti(), TplAestan\getItemSeparator(), TplAestan\GLYPH_ADD, TplAestan\GLYPH_FILE, Lang\MENU_ADD_VHOST, Lang\MENU_EDIT_VHOST, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Generates the main Apache menu with options to enable/disable Apache and access submenus.
@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 47 of file class.tpl.app.apache.php.
References $bearsamppBins, $bearsamppLang, Lang\APACHE, and TplApp\getMenuEnable().
Referenced by TplApp\getSectionMenuLeft().
const TplAppApache::ACTION_ADD_ALIAS = 'addAlias' |
Definition at line 34 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_ADD_VHOST = 'addVhost' |
Definition at line 36 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_CHANGE_PORT = 'changeApachePort' |
Definition at line 30 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_EDIT_ALIAS = 'editAlias' |
Definition at line 35 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_EDIT_VHOST = 'editVhost' |
Definition at line 37 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_ENABLE = 'enableApache' |
Definition at line 28 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_INSTALL_SERVICE = 'installApacheService' |
Definition at line 31 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_REMOVE_SERVICE = 'removeApacheService' |
Definition at line 32 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_SWITCH_MODULE = 'switchApacheModule' |
Definition at line 33 of file class.tpl.app.apache.php.
const TplAppApache::ACTION_SWITCH_VERSION = 'switchApacheVersion' |
Definition at line 29 of file class.tpl.app.apache.php.
const TplAppApache::MENU = 'apache' |
Definition at line 20 of file class.tpl.app.apache.php.
const TplAppApache::MENU_ALIAS = 'apacheAlias' |
Definition at line 25 of file class.tpl.app.apache.php.
const TplAppApache::MENU_DEBUG = 'apacheDebug' |
Definition at line 23 of file class.tpl.app.apache.php.
const TplAppApache::MENU_MODULES = 'apacheModules' |
Definition at line 24 of file class.tpl.app.apache.php.
const TplAppApache::MENU_SERVICE = 'apacheService' |
Definition at line 22 of file class.tpl.app.apache.php.
const TplAppApache::MENU_VERSIONS = 'apacheVersions' |
Definition at line 21 of file class.tpl.app.apache.php.
const TplAppApache::MENU_VHOSTS = 'apacheVhosts' |
Definition at line 26 of file class.tpl.app.apache.php.