![]() |
2024.8.23
|
Public Member Functions | |
__construct ($id, $type) | |
getExe () | |
reload ($id=null, $type=null) | |
setVersion ($version) | |
![]() | |
__toString () | |
getCurrentPath () | |
getId () | |
getName () | |
getRelease () | |
getRootPath () | |
getSymlinkPath () | |
getType () | |
getVersion () | |
getVersionList () | |
isEnable () | |
update ($sub=0, $showWindow=false) | |
Data Fields | |
const | LOCAL_CFG_EXE = 'yarnExe' |
const | ROOT_CFG_VERSION = 'yarnVersion' |
![]() | |
const | BUNDLE_RELEASE = 'bundleRelease' |
Private Attributes | |
$exe | |
Additional Inherited Members | |
![]() | |
__construct () | |
replace ($key, $value) | |
replaceAll ($params) | |
updateConfig ($version=null, $sub=0, $showWindow=false) | |
![]() | |
$bearsamppConf | |
$bearsamppConfRaw | |
$currentPath | |
$enable | |
$name | |
$release = 'N/A' | |
$rootPath | |
$symlinkPath | |
$version | |
Class ToolYarn
This class represents the Yarn tool module in the Bearsampp application. It extends the abstract Module class and provides specific functionalities for managing the Yarn tool, including version management and executable path handling.
Definition at line 17 of file class.tool.yarn.php.
ToolYarn::__construct | ( | $id, | |
$type ) |
Constructor for the ToolYarn class.
string | $id | The ID of the module. |
string | $type | The type of the module. |
Definition at line 42 of file class.tool.yarn.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
ToolYarn::getExe | ( | ) |
Gets the path to the Yarn executable.
Definition at line 101 of file class.tool.yarn.php.
References $exe.
ToolYarn::reload | ( | $id = null, | |
$type = null ) |
Reloads the Yarn 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 53 of file class.tool.yarn.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_EXE, Util\logError(), Util\logInfo(), Util\logReloadClass(), and Lang\YARN.
Referenced by __construct(), and setVersion().
ToolYarn::setVersion | ( | $version | ) |
Sets the version of the Yarn module and updates the configuration.
string | $version | The version to set. |
Reimplemented from Module.
Definition at line 89 of file class.tool.yarn.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 34 of file class.tool.yarn.php.
Referenced by getExe().
const ToolYarn::LOCAL_CFG_EXE = 'yarnExe' |
Configuration key for the Yarn executable in the local configuration.
Definition at line 27 of file class.tool.yarn.php.
Referenced by reload().
const ToolYarn::ROOT_CFG_VERSION = 'yarnVersion' |
Configuration key for the Yarn version in the root configuration.
Definition at line 22 of file class.tool.yarn.php.