2024.8.23
|
Static Public Member Functions | |
static | getActionExec () |
static | getActionMulti ($action, $args=array(), $item=array(), $disabled=false, $class=false) |
static | getActionRun ($action, $args=array(), $item=array(), $waitUntilTerminated=true) |
static | getMenu ($caption, $menu, $class) |
static | getMenuEnable ($caption, $menu, $class, $enabled=true) |
static | getSectionContent ($name, $class, $args=array()) |
static | getSectionName ($name, $args=array()) |
static | process () |
static | processLight () |
Data Fields | |
const | ITEM_CAPTION = 0 |
const | ITEM_GLYPH = 1 |
const | SECTION_CALL = 0 |
const | SECTION_CONTENT = 1 |
Private Member Functions | |
__construct () | |
Static Private Member Functions | |
static | getSectionMenuLeft () |
static | getSectionMenuRight () |
static | getSectionServices () |
static | getSectionStartupAction () |
Class TplApp
This class provides various methods to generate and manage menu items, actions, and sections within the Bearsampp application. It includes functionalities for creating and processing different sections, running actions, and generating menus with various options.
Definition at line 17 of file class.tpl.app.php.
|
private |
Private constructor to prevent instantiation.
Definition at line 29 of file class.tpl.app.php.
|
static |
Generates an action string to execute a specific action.
Definition at line 176 of file class.tpl.app.php.
References Action\EXEC, and getActionRun().
Referenced by getSectionStartupAction().
|
static |
Generates a multi-action string for a specific action.
string | $action | The action to run. |
array | $args | Optional arguments for the action. |
array | $item | Optional item details for the action. |
bool | $disabled | Whether the action is disabled. |
string | $class | The class name containing the method to generate the section content. |
Definition at line 152 of file class.tpl.app.php.
References getSectionName(), ITEM_CAPTION, and ITEM_GLYPH.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheAlias(), TplAppApache\getMenuApacheModules(), TplAppApache\getMenuApacheService(), TplAppApache\getMenuApacheVersions(), TplAppApache\getMenuApacheVhosts(), TplAppFilezilla\getMenuFilezilla(), TplAppFilezilla\getMenuFilezillaService(), TplAppFilezilla\getMenuFilezillaVersions(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), TplAppMailhog\getMenuMailhog(), TplAppMailhog\getMenuMailhogService(), TplAppMailhog\getMenuMailhogVersions(), TplAppMailpit\getMenuMailpit(), TplAppMailpit\getMenuMailpitService(), TplAppMailpit\getMenuMailpitVersions(), TplAppMariadb\getMenuMariadb(), TplAppMariadb\getMenuMariadbService(), TplAppMariadb\getMenuMariadbVersions(), TplAppMemcached\getMenuMemcached(), TplAppMemcached\getMenuMemcachedService(), TplAppMemcached\getMenuMemcachedVersions(), TplAppMysql\getMenuMysql(), TplAppMysql\getMenuMysqlService(), TplAppMysql\getMenuMysqlVersions(), TplAppNodejs\getMenuNodejs(), TplAppNodejs\getMenuNodejsVersions(), TplAppPhp\getMenuPhp(), TplAppPhp\getMenuPhpExtensions(), TplAppPhp\getMenuPhpSettings(), TplAppPhp\getMenuPhpVersions(), TplAppPostgresql\getMenuPostgresql(), TplAppPostgresql\getMenuPostgresqlService(), TplAppPostgresql\getMenuPostgresqlVersions(), TplAppTools\getMenuTools(), TplAppXlight\getMenuXlight(), TplAppXlight\getMenuXlightService(), TplAppXlight\getMenuXlightVersions(), TplAppPhp\getSubmenuPhpSettings(), TplAppBrowser\process(), TplAppExit\process(), TplAppLaunchStartup\process(), TplAppOnline\process(), TplAppReload\process(), and TplAppServices\process().
|
static |
Generates an action string to run a specific action.
string | $action | The action to run. |
array | $args | Optional arguments for the action. |
array | $item | Optional item details for the action. |
bool | $waitUntilTerminated | Whether to wait until the action is terminated. |
@global object $bearsamppRoot Provides access to the root directory of the application. @global object $bearsamppCore Provides access to core functionalities and configurations.
Definition at line 115 of file class.tpl.app.php.
References $bearsamppCore, $bearsamppRoot, $result, Core\isRoot_FILE, ITEM_CAPTION, and ITEM_GLYPH.
Referenced by TplAppApache\getActionAddAlias(), TplAppApache\getActionAddVhost(), TplAppApache\getActionChangeApachePort(), TplAppBrowser\getActionChangeBrowser(), TplAppFilezilla\getActionChangeFilezillaPort(), TplAppMailhog\getActionChangeMailhogPort(), TplAppMailpit\getActionChangeMailpitPort(), TplAppMariadb\getActionChangeMariadbPort(), TplAppMariadb\getActionChangeMariadbRootPwd(), TplAppMemcached\getActionChangeMemcachedPort(), TplAppMysql\getActionChangeMysqlPort(), TplAppMysql\getActionChangeMysqlRootPwd(), TplAppPostgresql\getActionChangePostgresqlPort(), TplAppPostgresql\getActionChangePostgresqlRootPwd(), TplAppXlight\getActionChangeXlightPort(), TplService\getActionCreate(), TplAppApache\getActionEditAlias(), TplAppApache\getActionEditVhost(), TplAppApache\getActionEnableApache(), TplAppFilezilla\getActionEnableFilezilla(), TplAppMailhog\getActionEnableMailhog(), TplAppMailpit\getActionEnableMailpit(), TplAppMariadb\getActionEnableMariadb(), TplAppMemcached\getActionEnableMemcached(), TplAppMysql\getActionEnableMysql(), TplAppNodejs\getActionEnableNodejs(), TplAppPhp\getActionEnablePhp(), TplAppPostgresql\getActionEnablePostgresql(), TplAppXlight\getActionEnableXlight(), getActionExec(), TplAppExit\getActionExit(), TplAppTools\getActionGenSslCertificate(), TplService\getActionInstall(), TplAppApache\getActionInstallApacheService(), TplAppFilezilla\getActionInstallFilezillaService(), TplAppMailhog\getActionInstallMailhogService(), TplAppMailpit\getActionInstallMailpitService(), TplAppMariadb\getActionInstallMariadbService(), TplAppMemcached\getActionInstallMemcachedService(), TplAppMysql\getActionInstallMysqlService(), TplAppPostgresql\getActionInstallPostgresqlService(), TplAppXlight\getActionInstallXlightService(), TplAppLaunchStartup\getActionLaunchStartup(), TplAppGit\getActionRefreshGitRepos(), TplAppGit\getActionRefreshGitReposStartup(), TplAppReload\getActionReload(), TplService\getActionRemove(), TplAppApache\getActionRemoveApacheService(), TplAppFilezilla\getActionRemoveFilezillaService(), TplAppMailhog\getActionRemoveMailhogService(), TplAppMailpit\getActionRemoveMailpitService(), TplAppMariadb\getActionRemoveMariadbService(), TplAppMemcached\getActionRemoveMemcachedService(), TplAppMysql\getActionRemoveMysqlService(), TplAppPostgresql\getActionRemovePostgresqlService(), TplAppXlight\getActionRemoveXlightService(), TplService\getActionRestart(), TplService\getActionStart(), TplAppOnline\getActionStatus(), TplService\getActionStop(), TplAppApache\getActionSwitchApacheModule(), TplAppApache\getActionSwitchApacheVersion(), TplAppFilezilla\getActionSwitchFilezillaVersion(), TplAppLang\getActionSwitchLang(), TplAppLogsVerbose\getActionSwitchLogsVerbose(), TplAppMailhog\getActionSwitchMailhogVersion(), TplAppMailpit\getActionSwitchMailpitVersion(), TplAppMariadb\getActionSwitchMariadbVersion(), TplAppMemcached\getActionSwitchMemcachedVersion(), TplAppMysql\getActionSwitchMysqlVersion(), TplAppNodejs\getActionSwitchNodejsVersion(), TplAppPhp\getActionSwitchPhpExtension(), TplAppPhp\getActionSwitchPhpSetting(), TplAppPhp\getActionSwitchPhpVersion(), TplAppPostgresql\getActionSwitchPostgresqlVersion(), TplAppXlight\getActionSwitchXlightVersion(), TplService\getItemInstall(), TplService\getItemRemove(), TplService\getItemRestart(), TplService\getItemStart(), TplService\getItemStop(), TplAppApache\getMenuApacheDebug(), TplAppApache\getMenuApacheService(), TplAppFilezilla\getMenuFilezillaService(), TplAppMailhog\getMenuMailhogService(), TplAppMailpit\getMenuMailpitService(), TplAppMariadb\getMenuMariadbDebug(), TplAppMariadb\getMenuMariadbService(), TplAppMemcached\getMenuMemcachedService(), TplAppMysql\getMenuMysqlDebug(), TplAppMysql\getMenuMysqlService(), TplAppPostgresql\getMenuPostgresqlDebug(), TplAppPostgresql\getMenuPostgresqlService(), TplAppXlight\getMenuXlightService(), getSectionMenuRight(), getSectionStartupAction(), TplAppClearFolders\process(), and TplAppRebuildIni\process().
|
static |
Generates a menu with the specified caption, menu name, and class.
string | $caption | The caption for the menu. |
string | $menu | The name of the menu. |
string | $class | The class name containing the method to generate the menu content. |
Definition at line 190 of file class.tpl.app.php.
References getSectionName(), and TplAestan\GLYPH_FOLDER_CLOSE.
Referenced by TplAppApache\getMenuApache(), TplAppFilezilla\getMenuFilezilla(), TplAppGit\getMenuGit(), TplAppMailhog\getMenuMailhog(), TplAppMailpit\getMenuMailpit(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), TplAppApps\process(), TplAppGit\process(), TplAppLang\process(), TplAppLogs\process(), TplAppLogsVerbose\process(), TplAppPython\process(), and TplAppTools\process().
|
static |
Generates a menu with the specified caption, menu name, class, and enabled state.
string | $caption | The caption for the menu. |
string | $menu | The name of the menu. |
string | $class | The class name containing the method to generate the menu content. |
bool | $enabled | Whether the menu is enabled. |
Definition at line 212 of file class.tpl.app.php.
References getSectionName(), TplAestan\GLYPH_FOLDER_CLOSE, and TplAestan\GLYPH_FOLDER_DISABLED.
Referenced by TplAppApache\process(), TplAppFilezilla\process(), TplAppMailhog\process(), TplAppMailpit\process(), TplAppMariadb\process(), TplAppMemcached\process(), TplAppMysql\process(), TplAppNodejs\process(), TplAppPhp\process(), TplAppPostgresql\process(), and TplAppXlight\process().
|
static |
Generates the content of a section based on the provided name, class, and arguments.
string | $name | The base name of the section. |
string | $class | The class name containing the method to generate the section content. |
array | $args | Optional arguments to pass to the method. |
Definition at line 94 of file class.tpl.app.php.
References getSectionName().
|
staticprivate |
Generates the left menu section.
@global object $bearsamppRoot Provides access to the root directory 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 319 of file class.tpl.app.php.
References $bearsamppBins, $bearsamppLang, $bearsamppRoot, TplAestan\getItemExplore(), TplAestan\getItemLink(), TplAestan\getItemSeparator(), Lang\MENU_LOCALHOST, Lang\MENU_WWW_DIRECTORY, TplAppApache\process(), TplAppApps\process(), TplAppFilezilla\process(), TplAppLogs\process(), TplAppMailhog\process(), TplAppMailpit\process(), TplAppMariadb\process(), TplAppMemcached\process(), TplAppMysql\process(), TplAppNodejs\process(), TplAppOnline\process(), TplAppPhp\process(), TplAppPostgresql\process(), TplAppServices\process(), TplAppTools\process(), TplAppXlight\process(), SECTION_CALL, and SECTION_CONTENT.
Referenced by process().
|
staticprivate |
Generates the right menu section.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 264 of file class.tpl.app.php.
References $bearsamppLang, Action\ABOUT, Action\CHECK_VERSION, ActionCheckVersion\DISPLAY_OK, getActionRun(), TplAestan\getItemLink(), TplAestan\getItemSeparator(), Util\getWebsiteUrl(), TplAestan\GLYPH_ABOUT, TplAestan\GLYPH_UPDATE, Lang\HELP, Lang\MENU_ABOUT, Lang\MENU_CHECK_UPDATE, TplAppBrowser\process(), TplAppClearFolders\process(), TplAppEditConf\process(), TplAppExit\process(), TplAppLang\process(), TplAppLaunchStartup\process(), TplAppLogsVerbose\process(), TplAppRebuildIni\process(), TplAppReload\process(), SECTION_CALL, and SECTION_CONTENT.
Referenced by process().
|
static |
Generates a section name based on the provided name and arguments.
string | $name | The base name of the section. |
array | $args | Optional arguments to include in the section name. |
Definition at line 80 of file class.tpl.app.php.
Referenced by getActionMulti(), getMenu(), getMenuEnable(), and getSectionContent().
|
staticprivate |
Generates the services section.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 231 of file class.tpl.app.php.
References $bearsamppBins, and $result.
Referenced by process(), and processLight().
|
staticprivate |
Generates the startup action section.
Definition at line 248 of file class.tpl.app.php.
References Action\CHECK_VERSION, getActionExec(), TplAppReload\getActionReload(), getActionRun(), and Action\STARTUP.
Referenced by process(), and processLight().
|
static |
Processes and generates the main sections of the application.
This method generates the main sections of the application, including configuration, services, messages, startup actions, and menu settings.
@global object $bearsamppCore Provides access to core functionalities and configurations.
Definition at line 43 of file class.tpl.app.php.
References $bearsamppCore, APP_TITLE, TplAestan\getSectionConfig(), getSectionMenuLeft(), TplAestan\getSectionMenuLeftSettings(), getSectionMenuRight(), TplAestan\getSectionMenuRightSettings(), TplAestan\getSectionMessages(), getSectionServices(), and getSectionStartupAction().
Referenced by ActionReload\__construct().
|
static |
Processes and generates a lighter version of the main sections.
This method generates a lighter version of the main sections, excluding some menu settings.
Definition at line 64 of file class.tpl.app.php.
References TplAestan\getSectionConfig(), TplAestan\getSectionMessages(), getSectionServices(), and getSectionStartupAction().
const TplApp::ITEM_CAPTION = 0 |
Definition at line 20 of file class.tpl.app.php.
Referenced by getActionMulti(), and getActionRun().
const TplApp::ITEM_GLYPH = 1 |
Definition at line 21 of file class.tpl.app.php.
Referenced by getActionMulti(), and getActionRun().
const TplApp::SECTION_CALL = 0 |
Definition at line 23 of file class.tpl.app.php.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheAlias(), TplAppApache\getMenuApacheModules(), TplAppApache\getMenuApacheService(), TplAppApache\getMenuApacheVersions(), TplAppApache\getMenuApacheVhosts(), TplAppFilezilla\getMenuFilezilla(), TplAppFilezilla\getMenuFilezillaService(), TplAppFilezilla\getMenuFilezillaVersions(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), TplAppMailhog\getMenuMailhog(), TplAppMailhog\getMenuMailhogService(), TplAppMailhog\getMenuMailhogVersions(), TplAppMailpit\getMenuMailpit(), TplAppMailpit\getMenuMailpitService(), TplAppMailpit\getMenuMailpitVersions(), TplAppMariadb\getMenuMariadb(), TplAppMariadb\getMenuMariadbService(), TplAppMariadb\getMenuMariadbVersions(), TplAppMemcached\getMenuMemcached(), TplAppMemcached\getMenuMemcachedService(), TplAppMemcached\getMenuMemcachedVersions(), TplAppMysql\getMenuMysql(), TplAppMysql\getMenuMysqlService(), TplAppMysql\getMenuMysqlVersions(), TplAppNodejs\getMenuNodejs(), TplAppNodejs\getMenuNodejsVersions(), TplAppPhp\getMenuPhp(), TplAppPhp\getMenuPhpExtensions(), TplAppPhp\getMenuPhpSettings(), TplAppPhp\getMenuPhpVersions(), TplAppPostgresql\getMenuPostgresql(), TplAppPostgresql\getMenuPostgresqlService(), TplAppPostgresql\getMenuPostgresqlVersions(), TplAppTools\getMenuTools(), TplAppXlight\getMenuXlight(), TplAppXlight\getMenuXlightService(), TplAppXlight\getMenuXlightVersions(), getSectionMenuLeft(), getSectionMenuRight(), TplAppPhp\getSubmenuPhpSettings(), and TplAppServices\process().
const TplApp::SECTION_CONTENT = 1 |
Definition at line 24 of file class.tpl.app.php.
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheAlias(), TplAppApache\getMenuApacheModules(), TplAppApache\getMenuApacheService(), TplAppApache\getMenuApacheVersions(), TplAppApache\getMenuApacheVhosts(), TplAppFilezilla\getMenuFilezilla(), TplAppFilezilla\getMenuFilezillaService(), TplAppFilezilla\getMenuFilezillaVersions(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), TplAppMailhog\getMenuMailhog(), TplAppMailhog\getMenuMailhogService(), TplAppMailhog\getMenuMailhogVersions(), TplAppMailpit\getMenuMailpit(), TplAppMailpit\getMenuMailpitService(), TplAppMailpit\getMenuMailpitVersions(), TplAppMariadb\getMenuMariadb(), TplAppMariadb\getMenuMariadbService(), TplAppMariadb\getMenuMariadbVersions(), TplAppMemcached\getMenuMemcached(), TplAppMemcached\getMenuMemcachedService(), TplAppMemcached\getMenuMemcachedVersions(), TplAppMysql\getMenuMysql(), TplAppMysql\getMenuMysqlService(), TplAppMysql\getMenuMysqlVersions(), TplAppNodejs\getMenuNodejs(), TplAppNodejs\getMenuNodejsVersions(), TplAppPhp\getMenuPhp(), TplAppPhp\getMenuPhpExtensions(), TplAppPhp\getMenuPhpSettings(), TplAppPhp\getMenuPhpVersions(), TplAppPostgresql\getMenuPostgresql(), TplAppPostgresql\getMenuPostgresqlService(), TplAppPostgresql\getMenuPostgresqlVersions(), TplAppTools\getMenuTools(), TplAppXlight\getMenuXlight(), TplAppXlight\getMenuXlightService(), TplAppXlight\getMenuXlightVersions(), getSectionMenuLeft(), getSectionMenuRight(), TplAppPhp\getSubmenuPhpSettings(), and TplAppServices\process().