![]() |
2024.8.23
|
Inheritance diagram for AppAdminer:
Collaboration diagram for AppAdminer: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 = 'adminerConf' |
| const | ROOT_CFG_VERSION = 'adminerVersion' |
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 AppAdminer
This class represents the Adminer application module in the Bearsampp application. It extends the Module class and provides functionalities specific to the Adminer module, such as configuration management and version control.
Definition at line 17 of file class.app.adminer.php.
| AppAdminer::__construct | ( | $id, | |
| $type ) |
Constructor for the AppAdminer class.
| string | $id | The ID of the module. |
| string | $type | The type of the module. |
Definition at line 40 of file class.app.adminer.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
| AppAdminer::getConf | ( | ) |
Gets the path to the Adminer configuration file.
Definition at line 152 of file class.app.adminer.php.
Referenced by updateConfig().
Here is the caller graph for this function:| AppAdminer::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 51 of file class.app.adminer.php.
References $bearsamppConfig, $bearsamppLang, Module\$id, Module\$type, Lang\ADMINER, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, LOCAL_CFG_CONF, Util\logError(), Util\logInfo(), and Util\logReloadClass().
Referenced by __construct().
Here is the caller graph for this function:| AppAdminer::setVersion | ( | $version | ) |
Sets the version of the module.
| string | $version | The version to set. |
Reimplemented from Module.
Definition at line 140 of file class.app.adminer.php.
|
protected |
Updates the module configuration with a specific version.
| 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.adminer.php.
References $bearsamppBins, $bearsamppRoot, Module\$version, getConf(), Module\getName(), Module\getSymlinkPath(), Util\logDebug(), Util\logError(), and Util\replaceInFile().
|
private |
Definition at line 32 of file class.app.adminer.php.
| const AppAdminer::LOCAL_CFG_CONF = 'adminerConf' |
Configuration key for the Adminer configuration file in the local configuration.
Definition at line 27 of file class.app.adminer.php.
Referenced by reload().
| const AppAdminer::ROOT_CFG_VERSION = 'adminerVersion' |
Configuration key for the Adminer version in the root configuration.
Definition at line 22 of file class.app.adminer.php.