![]() |
Bearsampp 2025.8.29
|
Static Public Member Functions | |
static | process () |
Data Fields | |
const | ICON_APP = 'app.ico' |
const | ICON_COMPOSER = 'composer.ico' |
const | ICON_DB = 'db.ico' |
const | ICON_GHOSTSCRIPT = 'ghostscript.ico' |
const | ICON_GIT = 'git.ico' |
const | ICON_NGROK = 'ngrok.ico' |
const | ICON_NODEJS = 'nodejs.ico' |
const | ICON_PEAR = 'pear.ico' |
const | ICON_PERL = 'perl.ico' |
const | ICON_POWERSHELL = 'powershell.ico' |
const | ICON_PYTHON = 'python.ico' |
const | ICON_RUBY = 'ruby.ico' |
Private Member Functions | |
__construct () |
Static Private Member Functions | |
static | getAppearanceSection () |
static | getBehaviorSection () |
static | getConsoleSection () |
static | getHotkeysSection () |
static | getIncrStr ($size=1) |
static | getMouseSection () |
static | getTab ($title, $icon, $shell, $initDir) |
static | getTabCmdSection () |
static | getTabComposerSection () |
static | getTabGhostscriptSection () |
static | getTabGitSection () |
static | getTabMariadbSection () |
static | getTabMysqlSection () |
static | getTabNgrokSection () |
static | getTabNodejsSection () |
static | getTabPearSection () |
static | getTabPerlSection () |
static | getTabPostgresqlSection () |
static | getTabPowerShellSection () |
static | getTabPythonSection () |
static | getTabRubySection () |
static | getTabsSection () |
Class TplConsoleZ
This class is responsible for generating the configuration file for ConsoleZ. It includes methods to define various sections of the configuration such as console settings, appearance, behavior, hotkeys, mouse actions, and tabs.
Definition at line 17 of file class.tpl.consolez.php.
|
private |
Private constructor to prevent instantiation.
Definition at line 35 of file class.tpl.consolez.php.
|
staticprivate |
Generates the XML section for appearance settings.
This method constructs the XML string for the appearance settings of the ConsoleZ configuration. It includes settings for font, window properties, controls, styles, position, and transparency.
Definition at line 117 of file class.tpl.consolez.php.
References getIncrStr().
Referenced by process().
|
staticprivate |
Generates the XML section for behavior settings.
This method constructs the XML string for the behavior settings of the ConsoleZ configuration. It includes settings for copy-paste behavior, scroll behavior, and tab highlight behavior.
Definition at line 182 of file class.tpl.consolez.php.
References getIncrStr().
Referenced by process().
|
staticprivate |
Generates the XML section for console settings.
This method constructs the XML string for the console settings of the ConsoleZ configuration. It includes settings for refresh rates, buffer sizes, and initial directory.
Definition at line 69 of file class.tpl.consolez.php.
References $bearsamppRoot, and getIncrStr().
Referenced by process().
|
staticprivate |
Generates the XML section for hotkeys settings.
This method constructs the XML string for the hotkeys settings of the ConsoleZ configuration. It includes settings for various hotkey combinations and their corresponding commands.
Definition at line 211 of file class.tpl.consolez.php.
References getIncrStr().
Referenced by process().
|
staticprivate |
Generates a string of incremented tabs.
This function constructs a string consisting of a specified number of tab characters.
int | $size | The number of tabs to include in the string. |
Definition at line 744 of file class.tpl.consolez.php.
References $result, and RETURN_TAB.
Referenced by getAppearanceSection(), getBehaviorSection(), getConsoleSection(), getHotkeysSection(), getMouseSection(), getTab(), and getTabsSection().
|
staticprivate |
Generates the XML structure for the mouse section.
This function creates an XML structure defining mouse actions and their corresponding key combinations. It uses the getIncrStr method to format the XML with appropriate indentation.
Definition at line 267 of file class.tpl.consolez.php.
References getIncrStr().
Referenced by process().
|
staticprivate |
Generates the HTML structure for a tab in the console.
This function constructs the HTML structure for a tab, including the title, icon, shell command, initial directory, cursor style, and background settings.
string | $title | The title of the tab. |
string | $icon | The icon for the tab. |
string | $shell | The shell command to be executed in the tab. |
string | $initDir | The initial directory for the tab. |
Definition at line 722 of file class.tpl.consolez.php.
References $bearsamppCore, and getIncrStr().
Referenced by getTabCmdSection(), getTabComposerSection(), getTabGhostscriptSection(), getTabGitSection(), getTabMariadbSection(), getTabMysqlSection(), getTabNgrokSection(), getTabNodejsSection(), getTabPearSection(), getTabPerlSection(), getTabPostgresqlSection(), getTabPowerShellSection(), getTabPythonSection(), and getTabRubySection().
|
staticprivate |
Generates the XML structure for the command tab section.
This function creates an XML structure defining the command tab and its configuration. It retrieves the tab title and shell command from the ConsoleZ tool and sets the root path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 320 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the Composer tab section.
This function creates an XML structure defining the Composer tab and its configuration. It retrieves the Composer executable path and sets the WWW path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 548 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the tab section for Ghostscript in the console.
This function constructs a shell command to check the version of Ghostscript and verifies if the executable exists. If the executable is not found, it returns a message indicating the absence of the executable. It then creates a tab section with the appropriate title, icon, shell command, and initial directory.
Definition at line 662 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the Git tab section.
This function creates an XML structure defining the Git tab and its configuration. It retrieves the Git executable path and sets the WWW path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 491 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the MariaDB tab section.
This function creates an XML structure defining the MariaDB tab and its configuration. It retrieves the MariaDB CLI executable path and sets the symlink path.
@global Bins $bearsamppBins The bins object of the application.
Definition at line 429 of file class.tpl.consolez.php.
References $bearsamppBins, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the MySQL tab section.
This function creates an XML structure defining the MySQL tab and its configuration. It retrieves the MySQL CLI executable path and sets the symlink path.
@global Bins $bearsamppBins The bins object of the application.
Definition at line 399 of file class.tpl.consolez.php.
References $bearsamppBins, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the tab section for Ngrok in the console.
This function constructs a shell command to check the version of Ngrok and verifies if the executable exists. If the executable is not found, it returns a message indicating the absence of the executable. It then creates a tab section with the appropriate title, icon, shell command, and initial directory.
Definition at line 692 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the Node.js tab section.
This function creates an XML structure defining the Node.js tab and its configuration. It retrieves the Node.js launch path and sets the WWW path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 520 of file class.tpl.consolez.php.
References $bearsamppBins, $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the PEAR tab section.
This function creates an XML structure defining the PEAR tab and its configuration. It retrieves the PEAR executable path and sets the symlink path.
@global Bins $bearsamppBins The bins object of the application.
Definition at line 371 of file class.tpl.consolez.php.
References $bearsamppBins, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the Perl tab section.
This function creates an XML structure defining the Perl tab and its configuration. It retrieves the Perl executable path and sets the WWW path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 632 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the PostgreSQL tab section.
This function creates an XML structure defining the PostgreSQL tab and its configuration. It retrieves the PostgreSQL CLI executable path and sets the symlink path.
@global Bins $bearsamppBins The bins object of the application.
Definition at line 459 of file class.tpl.consolez.php.
References $bearsamppBins, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the PowerShell tab section.
This function creates an XML structure defining the PowerShell tab and its configuration. It retrieves the PowerShell path and sets the root path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 343 of file class.tpl.consolez.php.
References $bearsamppRoot, Util\getPowerShellPath(), and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the Python tab section.
This function creates an XML structure defining the Python tab and its configuration. It retrieves the Python executable path and sets the WWW path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 576 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the Ruby tab section.
This function creates an XML structure defining the Ruby tab and its configuration. It retrieves the Ruby executable path and sets the WWW path.
@global Root $bearsamppRoot The root object of the application.
Definition at line 604 of file class.tpl.consolez.php.
References $bearsamppRoot, and getTab().
Referenced by getTabsSection().
|
staticprivate |
Generates the XML structure for the tabs section.
This function creates an XML structure defining various tabs and their configurations. It includes multiple tab sections such as command, PowerShell, PEAR, MySQL, MariaDB, PostgreSQL, Ghostscript, Git, Node.js, Composer, Perl, Python, Ruby and Ngrok.
Definition at line 289 of file class.tpl.consolez.php.
References getIncrStr(), getTabCmdSection(), getTabComposerSection(), getTabGhostscriptSection(), getTabGitSection(), getTabMariadbSection(), getTabMysqlSection(), getTabNgrokSection(), getTabNodejsSection(), getTabPearSection(), getTabPerlSection(), getTabPostgresqlSection(), getTabPowerShellSection(), getTabPythonSection(), and getTabRubySection().
Referenced by process().
|
static |
Generates the ConsoleZ configuration file.
This method constructs the XML structure for the ConsoleZ configuration by calling various helper methods to generate different sections of the configuration. The resulting XML is then written to the configuration file.
Definition at line 46 of file class.tpl.consolez.php.
References $result, getAppearanceSection(), getBehaviorSection(), getConsoleSection(), getHotkeysSection(), getMouseSection(), and getTabsSection().
Referenced by ActionReload\__construct().
const ICON_APP = 'app.ico' |
Definition at line 19 of file class.tpl.consolez.php.
const ICON_COMPOSER = 'composer.ico' |
Definition at line 26 of file class.tpl.consolez.php.
const ICON_DB = 'db.ico' |
Definition at line 22 of file class.tpl.consolez.php.
const ICON_GHOSTSCRIPT = 'ghostscript.ico' |
Definition at line 23 of file class.tpl.consolez.php.
const ICON_GIT = 'git.ico' |
Definition at line 24 of file class.tpl.consolez.php.
const ICON_NGROK = 'ngrok.ico' |
Definition at line 30 of file class.tpl.consolez.php.
const ICON_NODEJS = 'nodejs.ico' |
Definition at line 25 of file class.tpl.consolez.php.
const ICON_PEAR = 'pear.ico' |
Definition at line 21 of file class.tpl.consolez.php.
const ICON_PERL = 'perl.ico' |
Definition at line 29 of file class.tpl.consolez.php.
const ICON_POWERSHELL = 'powershell.ico' |
Definition at line 20 of file class.tpl.consolez.php.
const ICON_PYTHON = 'python.ico' |
Definition at line 27 of file class.tpl.consolez.php.
const ICON_RUBY = 'ruby.ico' |
Definition at line 28 of file class.tpl.consolez.php.