PHP Class PMA\libraries\config\ServerConfigChecks

Outputs results to message list, must be called between PMA_messagesBegin() and PMA_messagesEnd()
Mostra file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Protected Properties

Property Type Description
$cfg configurations being checked

Public Methods

Method Description
__construct ( PMA\libraries\config\ConfigFile $cfg ) Constructor.
performConfigChecks ( ) : void Perform config checks

Protected Methods

Method Description
defineMessages ( ) : array Define all messages
performConfigChecksCookieAuthUsed ( boolean $cookieAuthUsed, boolean $blowfishSecretSet, string $sBlowfishSecretMsg, string $blowfishSecret ) : array Check config of servers
performConfigChecksLoginCookie ( string $sLoginCookieValidityWarn, string $sLoginCookieValidityWarn2, string $sLoginCookieValidityWarn3 ) : void Check configuration for login cookie
performConfigChecksServerBZipdump ( string $sBZipDumpWarn ) : void Check GZipDump configuration
performConfigChecksServerGZipdump ( string $sGZipDumpWarn ) : void Check GZipDump configuration
performConfigChecksServers ( boolean $cookieAuthUsed, string $blowfishSecret, string $sServerAuthCfgMsg, string $sSecurityInfoMsg, boolean $blowfishSecretSet ) : array Check config of servers
performConfigChecksServersGetServerName ( string $serverName, integer $serverId ) : string Define server name
performConfigChecksServersSetBlowfishSecret ( string $blowfishSecret, boolean $cookieAuthServer, boolean $blowfishSecretSet ) : array Set blowfish secret
performConfigChecksServersZipdump ( string $sZipDumpImportWarn, string $sZipDumpExportWarn ) : void Perform config checks for zip part.
performConfigChecksZips ( string $sGZipDumpWarning, string $sBZipDumpWarning, string $sZipDumpImportWarn, string $sZipDumpExportWarn ) : void Perform config checks for zip part.

Method Details

__construct() public method

Constructor.
public __construct ( PMA\libraries\config\ConfigFile $cfg )
$cfg PMA\libraries\config\ConfigFile Configuration

defineMessages() protected static method

Define all messages
protected static defineMessages ( ) : array
return array

performConfigChecks() public method

Perform config checks
public performConfigChecks ( ) : void
return void

performConfigChecksCookieAuthUsed() protected method

Check config of servers
protected performConfigChecksCookieAuthUsed ( boolean $cookieAuthUsed, boolean $blowfishSecretSet, string $sBlowfishSecretMsg, string $blowfishSecret ) : array
$cookieAuthUsed boolean Cookie auth is used
$blowfishSecretSet boolean Blowfish secret set
$sBlowfishSecretMsg string Blowfish secret message
$blowfishSecret string Blowfish secret
return array

performConfigChecksLoginCookie() protected method

Check configuration for login cookie
protected performConfigChecksLoginCookie ( string $sLoginCookieValidityWarn, string $sLoginCookieValidityWarn2, string $sLoginCookieValidityWarn3 ) : void
$sLoginCookieValidityWarn string Warning 1 for login cookie validity
$sLoginCookieValidityWarn2 string Warning 2 for login cookie validity
$sLoginCookieValidityWarn3 string Warning 3 for login cookie validity
return void

performConfigChecksServerBZipdump() protected method

Check GZipDump configuration
protected performConfigChecksServerBZipdump ( string $sBZipDumpWarn ) : void
$sBZipDumpWarn string Warning for BZipDumpWarning
return void

performConfigChecksServerGZipdump() protected method

Check GZipDump configuration
protected performConfigChecksServerGZipdump ( string $sGZipDumpWarn ) : void
$sGZipDumpWarn string Warning for GZipDumpWarning
return void

performConfigChecksServers() protected method

Check config of servers
protected performConfigChecksServers ( boolean $cookieAuthUsed, string $blowfishSecret, string $sServerAuthCfgMsg, string $sSecurityInfoMsg, boolean $blowfishSecretSet ) : array
$cookieAuthUsed boolean Cookie auth is used
$blowfishSecret string Blowfish secret
$sServerAuthCfgMsg string Message for server auth config
$sSecurityInfoMsg string Message for security information
$blowfishSecretSet boolean Blowfish secret set
return array

performConfigChecksServersGetServerName() protected method

Define server name
protected performConfigChecksServersGetServerName ( string $serverName, integer $serverId ) : string
$serverName string Server name
$serverId integer Server id
return string Server name

performConfigChecksServersSetBlowfishSecret() protected method

Set blowfish secret
protected performConfigChecksServersSetBlowfishSecret ( string $blowfishSecret, boolean $cookieAuthServer, boolean $blowfishSecretSet ) : array
$blowfishSecret string Blowfish secret
$cookieAuthServer boolean Cookie auth is used
$blowfishSecretSet boolean Blowfish secret set
return array

performConfigChecksServersZipdump() protected method

Perform config checks for zip part.
protected performConfigChecksServersZipdump ( string $sZipDumpImportWarn, string $sZipDumpExportWarn ) : void
$sZipDumpImportWarn string Zip dump import warning
$sZipDumpExportWarn string Zip dump export warning
return void

performConfigChecksZips() protected method

Perform config checks for zip part.
protected performConfigChecksZips ( string $sGZipDumpWarning, string $sBZipDumpWarning, string $sZipDumpImportWarn, string $sZipDumpExportWarn ) : void
$sGZipDumpWarning string Gzip dump warning
$sBZipDumpWarning string Bzip dump warning
$sZipDumpImportWarn string Zip dump import warning
$sZipDumpExportWarn string Zip dump export warning
return void

Property Details

$cfg protected_oe property

configurations being checked
protected $cfg