PHP Класс PMA\libraries\config\ServerConfigChecks

Outputs results to message list, must be called between PMA_messagesBegin() and PMA_messagesEnd()
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$cfg configurations being checked

Открытые методы

Метод Описание
__construct ( PMA\libraries\config\ConfigFile $cfg ) Constructor.
performConfigChecks ( ) : void Perform config checks

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный метод

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

defineMessages() защищенный статический метод

Define all messages
protected static defineMessages ( ) : array
Результат array

performConfigChecks() публичный метод

Perform config checks
public performConfigChecks ( ) : void
Результат void

performConfigChecksCookieAuthUsed() защищенный метод

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
Результат array

performConfigChecksLoginCookie() защищенный метод

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
Результат void

performConfigChecksServerBZipdump() защищенный метод

Check GZipDump configuration
protected performConfigChecksServerBZipdump ( string $sBZipDumpWarn ) : void
$sBZipDumpWarn string Warning for BZipDumpWarning
Результат void

performConfigChecksServerGZipdump() защищенный метод

Check GZipDump configuration
protected performConfigChecksServerGZipdump ( string $sGZipDumpWarn ) : void
$sGZipDumpWarn string Warning for GZipDumpWarning
Результат void

performConfigChecksServers() защищенный метод

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
Результат array

performConfigChecksServersGetServerName() защищенный метод

Define server name
protected performConfigChecksServersGetServerName ( string $serverName, integer $serverId ) : string
$serverName string Server name
$serverId integer Server id
Результат string Server name

performConfigChecksServersSetBlowfishSecret() защищенный метод

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
Результат array

performConfigChecksServersZipdump() защищенный метод

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
Результат void

performConfigChecksZips() защищенный метод

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
Результат void

Описание свойств

$cfg защищенное свойство

configurations being checked
protected $cfg