![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct ($id, $type) | |
getExe () | |
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_EXE = 'perlExe' |
const | ROOT_CFG_VERSION = 'perlVersion' |
Data Fields inherited from Module | |
const | BUNDLE_RELEASE = 'bundleRelease' |
Private Attributes | |
$exe |
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 ToolPerl
This class represents the Perl tool module in the Bearsampp application. It extends the abstract Module class and provides functionalities specific to Perl.
Definition at line 16 of file class.tool.perl.php.
__construct | ( | $id, | |
$type ) |
Constructor for the ToolPerl class.
string | $id | The ID of the module. |
string | $type | The type of the module. |
Definition at line 39 of file class.tool.perl.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
getExe | ( | ) |
Gets the path to the Perl executable.
Definition at line 98 of file class.tool.perl.php.
References $exe.
reload | ( | $id = null, | |
$type = null ) |
Reloads the module configuration based on the provided ID and type.
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 50 of file class.tool.perl.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, Util\logError(), Util\logInfo(), Util\logReloadClass(), and Lang\PERL.
Referenced by __construct(), and setVersion().
setVersion | ( | $version | ) |
Sets the version of the Perl module and updates the configuration.
string | $version | The version to set. |
Reimplemented from Module.
Definition at line 86 of file class.tool.perl.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 31 of file class.tool.perl.php.
Referenced by getExe().
const LOCAL_CFG_EXE = 'perlExe' |
Configuration key for the Perl executable in the local configuration.
Definition at line 26 of file class.tool.perl.php.
const ROOT_CFG_VERSION = 'perlVersion' |
Configuration key for the Perl version in the root configuration.
Definition at line 21 of file class.tool.perl.php.