![]() |
2024.8.23
|
Inheritance diagram for AppWebgrind:
Collaboration diagram for AppWebgrind:Public Member Functions | |
| __construct ($id, $type) | |
| getConf () | |
| 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_CONF = 'webgrindConf' |
| const | ROOT_CFG_VERSION = 'webgrindVersion' |
Data Fields inherited from Module | |
| const | BUNDLE_RELEASE = 'bundleRelease' |
Protected Member Functions | |
| updateConfig ($version=null, $sub=0, $showWindow=false) | |
Protected Member Functions inherited from Module | |
| __construct () | |
| replace ($key, $value) | |
| replaceAll ($params) | |
Private Attributes | |
| $conf | |
Additional Inherited Members | |
Protected Attributes inherited from Module | |
| $bearsamppConf | |
| $bearsamppConfRaw | |
| $currentPath | |
| $enable | |
| $name | |
| $release = 'N/A' | |
| $rootPath | |
| $symlinkPath | |
| $version | |
Class AppWebgrind
This class represents the Webgrind application module within the Bearsampp application. It extends the Module class and provides functionalities specific to Webgrind, such as configuration management and version handling.
Definition at line 17 of file class.app.webgrind.php.
| AppWebgrind::__construct | ( | $id, | |
| $type ) |
Constructor for the AppWebgrind class.
| string | $id | The ID of the module. |
| string | $type | The type of the module. |
Definition at line 40 of file class.app.webgrind.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
| AppWebgrind::getConf | ( | ) |
Gets the path to the Webgrind configuration file.
Definition at line 130 of file class.app.webgrind.php.
References $conf.
| AppWebgrind::reload | ( | $id = null, | |
| $type = null ) |
Reloads the Webgrind 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.app.webgrind.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, LOCAL_CFG_CONF, Util\logError(), Util\logInfo(), Util\logReloadClass(), and Lang\WEBGRIND.
Referenced by __construct(), and setVersion().
Here is the caller graph for this function:| AppWebgrind::setVersion | ( | $version | ) |
Sets the version of the Webgrind module.
| string | $version | The version to set. |
Reimplemented from Module.
Definition at line 118 of file class.app.webgrind.php.
References $bearsamppConfig, Module\$version, and reload().
|
protected |
Updates the Webgrind module configuration.
| string | null | $version | The version to update to. If null, the current version is used. |
| int | $sub | The sub-level for logging indentation. |
| bool | $showWindow | Whether to show a window during the update process. |
Reimplemented from Module.
Definition at line 90 of file class.app.webgrind.php.
References $bearsamppRoot, Module\$version, Module\getName(), Module\getSymlinkPath(), Util\logDebug(), Util\logError(), and Util\replaceInFile().
|
private |
Definition at line 32 of file class.app.webgrind.php.
Referenced by getConf().
| const AppWebgrind::LOCAL_CFG_CONF = 'webgrindConf' |
Constant for the local configuration file key.
Definition at line 27 of file class.app.webgrind.php.
Referenced by reload().
| const AppWebgrind::ROOT_CFG_VERSION = 'webgrindVersion' |
Constant for the root configuration version key.
Definition at line 22 of file class.app.webgrind.php.