2024.8.23
|
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 = 'phpmyadminConf' |
const | ROOT_CFG_VERSION = 'phpmyadminVersion' |
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 AppPhpmyadmin
This class represents the phpMyAdmin application module in the Bearsampp application. It extends the Module class and provides functionalities specific to phpMyAdmin, such as configuration management and version handling.
Definition at line 17 of file class.app.phpmyadmin.php.
AppPhpmyadmin::__construct | ( | $id, | |
$type ) |
Constructor for the AppPhpmyadmin class.
string | $id | The ID of the module. |
string | $type | The type of the module. |
Definition at line 40 of file class.app.phpmyadmin.php.
References Module\$id, Module\$type, Util\logInitClass(), and reload().
AppPhpmyadmin::getConf | ( | ) |
Gets the path to the phpMyAdmin configuration file.
Definition at line 146 of file class.app.phpmyadmin.php.
Referenced by updateConfig().
AppPhpmyadmin::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.phpmyadmin.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\PHPMYADMIN.
Referenced by __construct().
AppPhpmyadmin::setVersion | ( | $version | ) |
Sets the version of the phpMyAdmin module.
string | $version | The version to set. |
Reimplemented from Module.
Definition at line 134 of file class.app.phpmyadmin.php.
|
protected |
Updates the configuration of the phpMyAdmin module.
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 91 of file class.app.phpmyadmin.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.phpmyadmin.php.
const AppPhpmyadmin::LOCAL_CFG_CONF = 'phpmyadminConf' |
Constant for the configuration key representing the phpMyAdmin configuration file.
Definition at line 27 of file class.app.phpmyadmin.php.
Referenced by reload().
const AppPhpmyadmin::ROOT_CFG_VERSION = 'phpmyadminVersion' |
Constant for the configuration key representing the phpMyAdmin version.
Definition at line 22 of file class.app.phpmyadmin.php.