![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct ($id, $type) | |
getCols () | |
getConf () | |
getExe () | |
getLaunchExe () | |
getRows () | |
getShell ($args=null) | |
getTabTitleComposer () | |
getTabTitleDefault () | |
getTabTitleGhostscript () | |
getTabTitleGit ($repoPath=null) | |
getTabTitleMariadb () | |
getTabTitleMysql () | |
getTabTitleNgrok () | |
getTabTitleNodejs () | |
getTabTitlePear () | |
getTabTitlePerl () | |
getTabTitlePostgresql () | |
getTabTitlePowershell () | |
getTabTitlePython () | |
getTabTitleRuby () | |
reload ($id=null, $type=null) | |
setVersion ($version) | |
Public Member Functions inherited from Module | |
__toString () | |
getCurrentPath () | |
getId () | |
getName () | |
getRelease () | |
getRootPath () | |
getSymlinkPath () | |
getType () | |
getVersion () | |
getVersionList () | |
isEnable () | |
update ($sub=0, $showWindow=false) |
Data Fields | |
const | LOCAL_CFG_COLS = 'consolezCols' |
const | LOCAL_CFG_CONF = 'consolezConf' |
const | LOCAL_CFG_EXE = 'consolezExe' |
const | LOCAL_CFG_LAUNCH_EXE = 'consolezLaunchExe' |
const | LOCAL_CFG_ROWS = 'consolezRows' |
const | ROOT_CFG_VERSION = 'consolezVersion' |
Data Fields inherited from Module | |
const | BUNDLE_RELEASE = 'bundleRelease' |
Private Attributes | |
$cols | |
$conf | |
$exe | |
$launchExe | |
$rows |
Additional Inherited Members | |
Protected Member Functions inherited from Module | |
__construct () | |
replace ($key, $value) | |
replaceAll ($params) | |
updateConfig ($version=null, $sub=0, $showWindow=false) | |
Protected Attributes inherited from Module | |
$bearsamppConf | |
$bearsamppConfRaw | |
$currentPath | |
$enable | |
$name | |
$release = 'N/A' | |
$rootPath | |
$symlinkPath | |
$version |
Class ToolConsoleZ
This class represents the ConsoleZ tool in the Bearsampp application. It extends the Module class and provides functionalities specific to ConsoleZ.
Definition at line 16 of file class.tool.consolez.php.
__construct | ( | $id, | |
$type ) |
Constructor for the ToolConsoleZ class.
string | $id | The ID of the module. |
string | $type | The type of the module. |
Definition at line 38 of file class.tool.consolez.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
getCols | ( | ) |
Gets the number of columns for the ConsoleZ window.
Definition at line 149 of file class.tool.consolez.php.
References $cols.
getConf | ( | ) |
Gets the configuration file path for ConsoleZ.
Definition at line 131 of file class.tool.consolez.php.
References $conf.
getExe | ( | ) |
Gets the executable path for ConsoleZ.
Definition at line 113 of file class.tool.consolez.php.
References $exe.
getLaunchExe | ( | ) |
Gets the launch executable path for ConsoleZ.
Definition at line 122 of file class.tool.consolez.php.
References $launchExe.
Referenced by getShell().
getRows | ( | ) |
Gets the number of rows for the ConsoleZ window.
Definition at line 140 of file class.tool.consolez.php.
References $rows.
getShell | ( | $args = null | ) |
Gets the shell command to launch ConsoleZ.
string | null | $args | Additional arguments for the shell command. |
Definition at line 159 of file class.tool.consolez.php.
References Util\formatWindowsPath(), and getLaunchExe().
getTabTitleComposer | ( | ) |
Gets the tab title for Composer.
Definition at line 256 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\COMPOSER.
getTabTitleDefault | ( | ) |
Gets the default tab title for ConsoleZ.
Definition at line 172 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\CONSOLE.
getTabTitleGhostscript | ( | ) |
Gets the tab title for Ghostscript.
Definition at line 296 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\GHOSTSCRIPT.
getTabTitleGit | ( | $repoPath = null | ) |
Gets the tab title for Git.
string | null | $repoPath | The repository path. |
Definition at line 232 of file class.tool.consolez.php.
References $bearsamppLang, $result, and Lang\GIT.
getTabTitleMariadb | ( | ) |
Gets the tab title for MariaDB.
Definition at line 211 of file class.tool.consolez.php.
References $bearsamppBins, $bearsamppLang, and Lang\MARIADB.
getTabTitleMysql | ( | ) |
Gets the tab title for MySQL.
Definition at line 201 of file class.tool.consolez.php.
References $bearsamppBins, $bearsamppLang, and Lang\MYSQL.
getTabTitleNgrok | ( | ) |
Gets the tab title for Ngrok.
Definition at line 306 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\NGROK.
getTabTitleNodejs | ( | ) |
Gets the tab title for Node.js.
Definition at line 246 of file class.tool.consolez.php.
References $bearsamppBins, $bearsamppLang, and Lang\NODEJS.
getTabTitlePear | ( | ) |
Gets the tab title for PEAR.
Definition at line 191 of file class.tool.consolez.php.
References $bearsamppBins, $bearsamppLang, and Lang\PEAR.
getTabTitlePerl | ( | ) |
Gets the tab title for Perl.
Definition at line 286 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\PERL.
getTabTitlePostgresql | ( | ) |
Gets the tab title for PostgreSQL.
Definition at line 221 of file class.tool.consolez.php.
References $bearsamppBins, $bearsamppLang, and Lang\POSTGRESQL.
getTabTitlePowershell | ( | ) |
Gets the tab title for PowerShell.
Definition at line 182 of file class.tool.consolez.php.
getTabTitlePython | ( | ) |
Gets the tab title for Python.
Definition at line 266 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\PYTHON.
getTabTitleRuby | ( | ) |
Gets the tab title for Ruby.
Definition at line 276 of file class.tool.consolez.php.
References $bearsamppLang, and Lang\RUBY.
reload | ( | $id = null, | |
$type = null ) |
Reloads the configuration for the ConsoleZ tool.
string | null | $id | The ID of the module. If null, the current ID is used. |
string | null | $type | The type of the module. If null, the current type is used. |
Reimplemented from Module.
Definition at line 49 of file class.tool.consolez.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\CONSOLEZ, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, Lang\ERROR_INVALID_PARAMETER, Util\logError(), Util\logInfo(), and Util\logReloadClass().
Referenced by __construct(), and setVersion().
setVersion | ( | $version | ) |
Sets the version of the ConsoleZ tool.
string | $version | The version to set. |
Reimplemented from Module.
Definition at line 101 of file class.tool.consolez.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 30 of file class.tool.consolez.php.
Referenced by getCols().
|
private |
Definition at line 28 of file class.tool.consolez.php.
Referenced by getConf().
|
private |
Definition at line 26 of file class.tool.consolez.php.
Referenced by getExe().
|
private |
Definition at line 27 of file class.tool.consolez.php.
Referenced by getLaunchExe().
|
private |
Definition at line 29 of file class.tool.consolez.php.
Referenced by getRows().
const LOCAL_CFG_COLS = 'consolezCols' |
Definition at line 24 of file class.tool.consolez.php.
const LOCAL_CFG_CONF = 'consolezConf' |
Definition at line 21 of file class.tool.consolez.php.
const LOCAL_CFG_EXE = 'consolezExe' |
Definition at line 20 of file class.tool.consolez.php.
const LOCAL_CFG_LAUNCH_EXE = 'consolezLaunchExe' |
Definition at line 22 of file class.tool.consolez.php.
const LOCAL_CFG_ROWS = 'consolezRows' |
Definition at line 23 of file class.tool.consolez.php.
const ROOT_CFG_VERSION = 'consolezVersion' |
Definition at line 18 of file class.tool.consolez.php.