2024.8.23
|
Public Member Functions | |
__construct ($id, $type) | |
getCpExe () | |
getExe () | |
getIdleExe () | |
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_CP_EXE = 'pythonCpExe' |
const | LOCAL_CFG_EXE = 'pythonExe' |
const | LOCAL_CFG_IDLE_EXE = 'pythonIdleExe' |
const | ROOT_CFG_VERSION = 'pythonVersion' |
Data Fields inherited from Module | |
const | BUNDLE_RELEASE = 'bundleRelease' |
Private Attributes | |
$cpExe | |
$exe | |
$idleExe | |
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 ToolPython
This class represents a Python tool module in the Bearsampp application. It extends the abstract Module class and provides specific functionalities for managing Python executables and configurations.
Definition at line 17 of file class.tool.python.php.
ToolPython::__construct | ( | $id, | |
$type ) |
Constructor for the ToolPython class.
string | $id | The ID of the module. |
string | $type | The type of the module. |
Definition at line 35 of file class.tool.python.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
ToolPython::getCpExe | ( | ) |
Gets the path to the Python CP executable.
Definition at line 111 of file class.tool.python.php.
References $cpExe.
ToolPython::getExe | ( | ) |
Gets the path to the Python executable.
Definition at line 102 of file class.tool.python.php.
References $exe.
ToolPython::getIdleExe | ( | ) |
Gets the path to the Python IDLE executable.
Definition at line 120 of file class.tool.python.php.
References $idleExe.
ToolPython::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 46 of file class.tool.python.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, LOCAL_CFG_CP_EXE, LOCAL_CFG_EXE, LOCAL_CFG_IDLE_EXE, Util\logError(), Util\logInfo(), Util\logReloadClass(), and Lang\PYTHON.
Referenced by __construct(), and setVersion().
ToolPython::setVersion | ( | $version | ) |
Sets the version of the Python module and reloads the configuration.
string | $version | The version to set. |
Reimplemented from Module.
Definition at line 90 of file class.tool.python.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 26 of file class.tool.python.php.
Referenced by getCpExe().
|
private |
Definition at line 25 of file class.tool.python.php.
Referenced by getExe().
|
private |
Definition at line 27 of file class.tool.python.php.
Referenced by getIdleExe().
const ToolPython::LOCAL_CFG_CP_EXE = 'pythonCpExe' |
Definition at line 22 of file class.tool.python.php.
Referenced by reload().
const ToolPython::LOCAL_CFG_EXE = 'pythonExe' |
Definition at line 21 of file class.tool.python.php.
Referenced by reload().
const ToolPython::LOCAL_CFG_IDLE_EXE = 'pythonIdleExe' |
Definition at line 23 of file class.tool.python.php.
Referenced by reload().
const ToolPython::ROOT_CFG_VERSION = 'pythonVersion' |
Definition at line 19 of file class.tool.python.php.