2024.8.23
|
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 = 'ngrokExe' |
const | ROOT_CFG_VERSION = 'ngrokVersion' |
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 ToolNgrok
This class represents the Ngrok tool module in the Bearsampp application. It extends the Module class and provides functionalities specific to Ngrok, such as loading configurations, setting versions, and retrieving executable paths.
Definition at line 17 of file class.tool.ngrok.php.
ToolNgrok::__construct | ( | $id, | |
$type ) |
Constructor for the ToolNgrok class.
string | $id | The ID of the module. |
string | $type | The type of the module. |
Definition at line 40 of file class.tool.ngrok.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
ToolNgrok::getExe | ( | ) |
Gets the path to the Ngrok executable.
Definition at line 99 of file class.tool.ngrok.php.
References $exe.
ToolNgrok::reload | ( | $id = null, | |
$type = null ) |
Reloads the Ngrok 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 51 of file class.tool.ngrok.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\NGROK.
Referenced by __construct(), and setVersion().
ToolNgrok::setVersion | ( | $version | ) |
Sets the version of the Ngrok module and reloads the configuration.
string | $version | The version to set. |
Reimplemented from Module.
Definition at line 87 of file class.tool.ngrok.php.
References $bearsamppConfig, Module\$version, and reload().
|
private |
Definition at line 32 of file class.tool.ngrok.php.
Referenced by getExe().
const ToolNgrok::LOCAL_CFG_EXE = 'ngrokExe' |
Configuration key for the Ngrok executable in the local configuration.
Definition at line 27 of file class.tool.ngrok.php.
Referenced by reload().
const ToolNgrok::ROOT_CFG_VERSION = 'ngrokVersion' |
Configuration key for the Ngrok version in the root configuration.
Definition at line 22 of file class.tool.ngrok.php.