2024.8.23
|
Static Public Member Functions | |
static | getActionEnableNodejs ($enable) |
static | getActionSwitchNodejsVersion ($version) |
static | getMenuNodejs () |
static | getMenuNodejsVersions () |
static | process () |
Data Fields | |
const | ACTION_ENABLE = 'enableNodejs' |
const | ACTION_SWITCH_VERSION = 'switchNodejsVersion' |
const | MENU = 'nodejs' |
const | MENU_VERSIONS = 'nodejsVersions' |
Class TplAppNodejs
This class provides methods to generate and manage menu items and actions related to Node.js within the Bearsampp application. It includes functionalities for enabling/disabling Node.js, switching Node.js versions, and generating menus for Node.js actions.
Definition at line 16 of file class.tpl.app.nodejs.php.
|
static |
Generates the action to enable or disable Node.js.
This method creates the action string for enabling or disabling Node.js. It includes commands to reload the application.
int | $enable | The flag indicating whether to enable (1) or disable (0) Node.js. |
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 159 of file class.tpl.app.nodejs.php.
References $bearsamppBins, Action\ENABLE, TplAppReload\getActionReload(), and TplApp\getActionRun().
|
static |
Generates the action to switch Node.js versions.
This method creates the action string for switching Node.js versions. It includes commands to reload the application.
string | $version | The version of Node.js to switch to. |
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 180 of file class.tpl.app.nodejs.php.
References $bearsamppBins, TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_VERSION.
|
static |
Generates the Node.js menu items and associated actions.
This method creates menu items for Node.js, including options to download more versions, enable/disable Node.js, switch versions, open a console, and edit the configuration file.
@global object $bearsamppBins Provides access to system binaries and their configurations. @global object $bearsamppLang Provides language support for retrieving language-specific values. @global object $bearsamppTools Provides access to various tools used in the application.
Definition at line 59 of file class.tpl.app.nodejs.php.
References $bearsamppBins, $bearsamppLang, Lang\CONSOLE, Config\DISABLED, Lang\DOWNLOAD_MORE, Config\ENABLED, TplApp\getActionMulti(), TplAestan\getItemConsoleZ(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAestan\getItemSeparator(), TplApp\getMenu(), Util\getWebsiteUrl(), TplAestan\GLYPH_BROWSER, TplAestan\GLYPH_CHECK, TplAestan\GLYPH_CONSOLEZ, Lang\MENU_ENABLE, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, and Lang\VERSIONS.
|
static |
Generates the Node.js versions menu items and associated actions.
This method creates menu items for switching between different Node.js versions.
@global object $bearsamppBins Provides access to system binaries and their configurations.
Definition at line 123 of file class.tpl.app.nodejs.php.
References $bearsamppBins, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, and TplApp\SECTION_CONTENT.
|
static |
Processes and generates the Node.js menu.
This method generates the menu for Node.js, including options to enable/disable Node.js and switch versions.
@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 35 of file class.tpl.app.nodejs.php.
References $bearsamppBins, $bearsamppLang, TplApp\getMenuEnable(), and Lang\NODEJS.
Referenced by TplApp\getSectionMenuLeft().
const TplAppNodejs::ACTION_ENABLE = 'enableNodejs' |
Definition at line 22 of file class.tpl.app.nodejs.php.
const TplAppNodejs::ACTION_SWITCH_VERSION = 'switchNodejsVersion' |
Definition at line 23 of file class.tpl.app.nodejs.php.
const TplAppNodejs::MENU = 'nodejs' |
Definition at line 19 of file class.tpl.app.nodejs.php.
const TplAppNodejs::MENU_VERSIONS = 'nodejsVersions' |
Definition at line 20 of file class.tpl.app.nodejs.php.