本文整理匯總了PHP中InstallUtil::checkDatabaseLogBinValue方法的典型用法代碼示例。如果您正苦於以下問題:PHP InstallUtil::checkDatabaseLogBinValue方法的具體用法?PHP InstallUtil::checkDatabaseLogBinValue怎麽用?PHP InstallUtil::checkDatabaseLogBinValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類InstallUtil
的用法示例。
在下文中一共展示了InstallUtil::checkDatabaseLogBinValue方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: checkService
protected function checkService()
{
$passed = true;
$logBinValue = null;
if (!InstallUtil::checkDatabaseLogBinValue('mysql', $this->form->databaseHostname, $this->form->databaseUsername, $this->form->databasePassword, $this->form->databasePort, $this->minimumUploadRequireBytes, $logBinValue)) {
$logBinTrustFunctionCreatorsValue = null;
if (!InstallUtil::checkDatabaseLogBinTrustFunctionCreatorsValue('mysql', $this->form->databaseHostname, $this->form->databaseUsername, $this->form->databasePassword, $this->form->databasePort, $this->minimumUploadRequireBytes, $logBinTrustFunctionCreatorsValue)) {
$this->message = Zurmo::t('InstallModule', 'Database log_bin=on. Either set log_bin=off or set log_bin_trust_function_creators=on.');
// Not Coding Standard
$passed = false;
} else {
$this->message = Zurmo::t('InstallModule', 'Database log_bin=on and log_bin_trust_function_creators=on and therefore satisfies this requirement');
// Not Coding Standard
$passed = true;
}
} else {
$this->message = Zurmo::t('InstallModule', 'Database log_bin=off and therefore satisfies this requirement.');
// Not Coding Standard
}
return $passed;
}
示例2: testCheckDatabaseLogBinValue
/**
* Simple test to confirm the check doesnt break.
*/
public function testCheckDatabaseLogBinValue()
{
$logBinValue = null;
$this->assertNotNull(InstallUtil::checkDatabaseLogBinValue('mysql', $this->temporaryDatabaseHostname, $this->temporaryDatabaseName, $this->temporaryDatabaseUsername, $this->temporaryDatabasePassword, $this->temporaryDatabasePort, $logBinValue));
}