![]() |
Bearsampp 2026.9.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 177 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 153 of file class.tpl.app.php.
References getSectionName().
Referenced by TplAppApache\getMenuApache(), TplAppApache\getMenuApacheAlias(), TplAppApache\getMenuApacheModules(), TplAppApache\getMenuApacheService(), TplAppApache\getMenuApacheVersions(), TplAppApache\getMenuApacheVhosts(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), 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.
Definition at line 116 of file class.tpl.app.php.
References $bearsamppCore, $bearsamppRoot, $result, Path\getCorePath(), Path\getPhpExe(), and Core\isRoot_FILE.
Referenced by TplAppApache\getActionAddAlias(), TplAppApache\getActionAddVhost(), TplAppApache\getActionChangeApachePort(), TplAppBrowser\getActionChangeBrowser(), TplAppMailpit\getActionChangeMailpitPort(), TplAppMariadb\getActionChangeMariadbPort(), TplAppMariadb\getActionChangeMariadbRootPwd(), TplAppMemcached\getActionChangeMemcachedPort(), TplAppMysql\getActionChangeMysqlPort(), TplAppMysql\getActionChangeMysqlRootPwd(), TplAppPostgresql\getActionChangePostgresqlPort(), TplAppPostgresql\getActionChangePostgresqlRootPwd(), TplAppXlight\getActionChangeXlightPort(), TplService\getActionCreate(), TplAppTools\getActionDelSslCertificate(), TplAppApache\getActionEditAlias(), TplAppApache\getActionEditVhost(), TplAppApache\getActionEnableApache(), 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(), TplAppMailpit\getActionInstallMailpitService(), TplAppMariadb\getActionInstallMariadbService(), TplAppMemcached\getActionInstallMemcachedService(), TplAppMysql\getActionInstallMysqlService(), TplAppPostgresql\getActionInstallPostgresqlService(), TplAppXlight\getActionInstallXlightService(), TplAppLaunchStartup\getActionLaunchStartup(), TplAppTools\getActionMakeRootCa(), TplAppGit\getActionRefreshGitRepos(), TplAppGit\getActionRefreshGitReposStartup(), TplAppReload\getActionReload(), TplService\getActionRemove(), TplAppApache\getActionRemoveApacheService(), TplAppMailpit\getActionRemoveMailpitService(), TplAppMariadb\getActionRemoveMariadbService(), TplAppMemcached\getActionRemoveMemcachedService(), TplAppMysql\getActionRemoveMysqlService(), TplAppPostgresql\getActionRemovePostgresqlService(), TplAppXlight\getActionRemoveXlightService(), TplService\getActionRestart(), TplAppServices\getActionRestartServices(), TplService\getActionStart(), TplAppServices\getActionStartServices(), TplAppOnline\getActionStatus(), TplService\getActionStop(), TplAppServices\getActionStopServices(), TplAppApache\getActionSwitchApacheModule(), TplAppApache\getActionSwitchApacheVersion(), TplAppLang\getActionSwitchLang(), TplAppLogsVerbose\getActionSwitchLogsVerbose(), 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(), 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 191 of file class.tpl.app.php.
References getSectionName(), and TplAestan\GLYPH_FOLDER_CLOSE.
Referenced by TplAppApache\getMenuApache(), TplAppGit\getMenuGit(), 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 213 of file class.tpl.app.php.
References getSectionName(), TplAestan\GLYPH_FOLDER_CLOSE, and TplAestan\GLYPH_FOLDER_DISABLED.
Referenced by TplAppApache\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.
Definition at line 322 of file class.tpl.app.php.
References $bearsamppBins, $bearsamppLang, $bearsamppRoot, TplAestan\getItemExplore(), TplAestan\getItemLink(), TplAestan\getItemSeparator(), Path\getWwwPath(), Lang\MENU_LOCALHOST, Lang\MENU_WWW_DIRECTORY, TplAppApache\process(), TplAppApps\process(), TplAppLogs\process(), TplAppMailpit\process(), TplAppMariadb\process(), TplAppMemcached\process(), TplAppMysql\process(), TplAppNodejs\process(), TplAppOnline\process(), TplAppPhp\process(), TplAppPostgresql\process(), TplAppServices\process(), TplAppTools\process(), and TplAppXlight\process().
Referenced by process().
|
staticprivate |
Generates the right menu section.
Definition at line 265 of file class.tpl.app.php.
References $bearsamppLang, Action\ABOUT, Action\CHECK_VERSION, ActionCheckVersion\DISPLAY_OK, Lang\DOCUMENTATION, getActionRun(), TplAestan\getItemLink(), TplAestan\getItemSeparator(), Path\getLocalUrl(), HttpClient\getWebsiteUrl(), TplAestan\GLYPH_ABOUT, TplAestan\GLYPH_UPDATE, Lang\MENU_ABOUT, Lang\MENU_CHECK_UPDATE, Lang\MENU_VIEW_CACHE_STATS, Homepage\PAGE_CACHE_STATS, TplAppBrowser\process(), TplAppClearFolders\process(), TplAppEditConf\process(), TplAppExit\process(), TplAppLang\process(), TplAppLaunchStartup\process(), TplAppLogsVerbose\process(), TplAppRebuildIni\process(), and TplAppReload\process().
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.
Definition at line 232 of file class.tpl.app.php.
References $bearsamppBins, and $result.
Referenced by process(), and processLight().
|
staticprivate |
Generates the startup action section.
Definition at line 249 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.
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(), ActionChangePort\processWindow(), and QuickPick\regenerateMenuSafe().
|
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 ITEM_CAPTION = 0 |
Definition at line 20 of file class.tpl.app.php.
| const ITEM_GLYPH = 1 |
Definition at line 21 of file class.tpl.app.php.
| const 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(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), 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(), and TplAppServices\process().
| const 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(), TplAppGit\getMenuGit(), TplAppLang\getMenuLang(), TplAppLogsVerbose\getMenuLogsVerbose(), 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(), and TplAppServices\process().