|
Bearsampp 2026.3.26
API documentation
|
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 = 'powershellCols' |
| const | LOCAL_CFG_CONF = 'powershellConf' |
| const | LOCAL_CFG_EXE = 'powershellExe' |
| const | LOCAL_CFG_LAUNCH_EXE = 'powershellLaunchExe' |
| const | LOCAL_CFG_ROWS = 'powershellRows' |
| const | ROOT_CFG_VERSION = 'powershellVersion' |
| 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 ToolPowerShell
This class represents the PowerShell tool in the Bearsampp application. It extends the Module class and provides functionalities specific to PowerShell.
Definition at line 16 of file class.tool.powershell.php.
| __construct | ( | $id, | |
| $type ) |
Constructor for the ToolPowerShell class.
Definition at line 38 of file class.tool.powershell.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
| getCols | ( | ) |
Gets the number of columns for the PowerShell window.
Definition at line 149 of file class.tool.powershell.php.
References $cols.
| getConf | ( | ) |
Gets the configuration file path for PowerShell.
Definition at line 131 of file class.tool.powershell.php.
References $conf.
| getExe | ( | ) |
Gets the executable path for PowerShell.
Definition at line 113 of file class.tool.powershell.php.
References $exe.
| getLaunchExe | ( | ) |
Gets the launch executable path for PowerShell.
Definition at line 122 of file class.tool.powershell.php.
References $launchExe.
Referenced by getShell().
| getRows | ( | ) |
Gets the number of rows for the PowerShell window.
Definition at line 140 of file class.tool.powershell.php.
References $rows.
| getShell | ( | $args = null | ) |
Gets the shell command to launch PowerShell.
| string | null | $args | Additional arguments for the shell command. |
Definition at line 159 of file class.tool.powershell.php.
References Util\formatWindowsPath(), and getLaunchExe().
| getTabTitleComposer | ( | ) |
Gets the tab title for Composer.
Definition at line 255 of file class.tool.powershell.php.
References $bearsamppLang, and Lang\COMPOSER.
| getTabTitleDefault | ( | ) |
Gets the default tab title for PowerShell.
Definition at line 172 of file class.tool.powershell.php.
| getTabTitleGhostscript | ( | ) |
Gets the tab title for Ghostscript.
Definition at line 295 of file class.tool.powershell.php.
References $bearsamppLang, and Lang\GHOSTSCRIPT.
| getTabTitleGit | ( | $repoPath = null | ) |
Gets the tab title for Git.
| string | null | $repoPath | The repository path. |
Definition at line 231 of file class.tool.powershell.php.
References $bearsamppLang, $result, and Lang\GIT.
| getTabTitleMariadb | ( | ) |
Gets the tab title for MariaDB.
Definition at line 210 of file class.tool.powershell.php.
References $bearsamppBins, $bearsamppLang, and Lang\MARIADB.
| getTabTitleMysql | ( | ) |
Gets the tab title for MySQL.
Definition at line 200 of file class.tool.powershell.php.
References $bearsamppBins, $bearsamppLang, and Lang\MYSQL.
| getTabTitleNgrok | ( | ) |
Gets the tab title for Ngrok.
Definition at line 305 of file class.tool.powershell.php.
References $bearsamppLang, and Lang\NGROK.
| getTabTitleNodejs | ( | ) |
Gets the tab title for Node.js.
Definition at line 245 of file class.tool.powershell.php.
References $bearsamppBins, $bearsamppLang, and Lang\NODEJS.
| getTabTitlePear | ( | ) |
Gets the tab title for PEAR.
Definition at line 190 of file class.tool.powershell.php.
References $bearsamppBins, $bearsamppLang, and Lang\PEAR.
| getTabTitlePerl | ( | ) |
Gets the tab title for Perl.
Definition at line 285 of file class.tool.powershell.php.
References $bearsamppLang, and Lang\PERL.
| getTabTitlePostgresql | ( | ) |
Gets the tab title for PostgreSQL.
Definition at line 220 of file class.tool.powershell.php.
References $bearsamppBins, $bearsamppLang, and Lang\POSTGRESQL.
| getTabTitlePowershell | ( | ) |
Gets the tab title for PowerShell.
Definition at line 181 of file class.tool.powershell.php.
| getTabTitlePython | ( | ) |
Gets the tab title for Python.
Definition at line 265 of file class.tool.powershell.php.
References $bearsamppLang, and Lang\PYTHON.
| getTabTitleRuby | ( | ) |
Gets the tab title for Ruby.
Definition at line 275 of file class.tool.powershell.php.
References $bearsamppLang, and Lang\RUBY.
| reload | ( | $id = null, | |
| $type = null ) |
Reloads the configuration for the PowerShell 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.powershell.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, Lang\ERROR_INVALID_PARAMETER, Util\logError(), Util\logInfo(), Util\logReloadClass(), and Lang\POWERSHELL.
Referenced by __construct(), and setVersion().
| setVersion | ( | $version | ) |
Sets the version of the PowerShell tool.
| string | $version | The version to set. |
Reimplemented from Module.
Definition at line 101 of file class.tool.powershell.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 30 of file class.tool.powershell.php.
Referenced by getCols().
|
private |
Definition at line 28 of file class.tool.powershell.php.
Referenced by getConf().
|
private |
Definition at line 26 of file class.tool.powershell.php.
Referenced by getExe().
|
private |
Definition at line 27 of file class.tool.powershell.php.
Referenced by getLaunchExe().
|
private |
Definition at line 29 of file class.tool.powershell.php.
Referenced by getRows().
| const LOCAL_CFG_COLS = 'powershellCols' |
Definition at line 24 of file class.tool.powershell.php.
| const LOCAL_CFG_CONF = 'powershellConf' |
Definition at line 21 of file class.tool.powershell.php.
| const LOCAL_CFG_EXE = 'powershellExe' |
Definition at line 20 of file class.tool.powershell.php.
| const LOCAL_CFG_LAUNCH_EXE = 'powershellLaunchExe' |
Definition at line 22 of file class.tool.powershell.php.
| const LOCAL_CFG_ROWS = 'powershellRows' |
Definition at line 23 of file class.tool.powershell.php.
| const ROOT_CFG_VERSION = 'powershellVersion' |
Definition at line 18 of file class.tool.powershell.php.