Config
class Config (View source)
Configuration handling
Properties
| static self|null | $instance | ||
| array | $default | ||
| array | $baseSettings | ||
| array | $settings | ||
| int | $sourceMtime | ||
| Settings | $config | ||
| int<0, max> | $server | ||
| array | $selectedServer |
Methods
No description
No description
No description
No description
Determines if GD2+ is available.
No description
set source
No description
verifies the permissions on config file (if asked by configuration) (must be called after config.inc.php has been merged)
sets configuration variable
returns source for current config
No description
Checks if protocol is https
Get phpMyAdmin root path
removes cookie
sets cookie if value is different from current cookie value, or removes if value is equal to default
get cookie
Get the real cookie name
isset cookie
Returns temporary dir path
Returns temporary directory
No description
Return connection parameters for the database server
No description
No description
No description
Details
__construct()
No description
static Config
getInstance()
deprecated
deprecated
No description
void
setSetup(bool $isSetup)
No description
bool
isSetup()
No description
void
loadFromFile(string|null $source = null)
No description
bool
isGd2Available()
Determines if GD2+ is available.
Respects the config override ('yes' / 'no') if set,
otherwise checks the GD_MAJOR_VERSION constant (>= 2).
bool
isWindows()
No description
void
setSource(string $source)
set source
bool
configFileExists()
No description
void
checkPermissions()
verifies the permissions on config file (if asked by configuration) (must be called after config.inc.php has been merged)
void
set(string $setting, mixed $value)
sets configuration variable
string
getSource()
returns source for current config
bool
isUploadEnabled()
No description
bool
isHttps()
Checks if protocol is https
This function checks if the https protocol on the active connection.
string
getRootPath()
Get phpMyAdmin root path
bool
removeCookie(string $cookieName)
removes cookie
bool
setCookie(string $cookie, string $value, string|null $default = null, int|null $validity = null, bool $httponly = true)
sets cookie if value is different from current cookie value, or removes if value is equal to default
mixed
getCookie(string $cookieName)
get cookie
string
getCookieName(string $cookieName)
Get the real cookie name
bool
issetCookie(string $cookieName)
isset cookie
string|null
getTempDir(string $name)
Returns temporary dir path
string|null
getUploadTempDir()
Returns temporary directory
int
selectServer(mixed $serverParamFromRequest)
No description
static Server
getConnectionParams(Server $currentServer, ConnectionType $connectionType)
Return connection parameters for the database server
Settings
getSettings()
No description
bool
hasSelectedServer()
No description
string
getChangeLogFilePath()
No description