本文整理汇总了PHP中InstallUtil::doesDebugConfigExist方法的典型用法代码示例。如果您正苦于以下问题:PHP InstallUtil::doesDebugConfigExist方法的具体用法?PHP InstallUtil::doesDebugConfigExist怎么用?PHP InstallUtil::doesDebugConfigExist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InstallUtil
的用法示例。
在下文中一共展示了InstallUtil::doesDebugConfigExist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkService
protected function checkService()
{
$passed = true;
$applicationLogWritable = InstallUtil::isApplicationLogRuntimeWritable(INSTANCE_ROOT);
if ($applicationLogWritable) {
$this->message = Zurmo::t('InstallModule', 'The application.log runtime file is writable.');
} else {
$this->message = Zurmo::t('InstallModule', 'The application.log runtime file is not writable.');
$passed = false;
}
if (!extension_loaded('apc')) {
$minScriptCacheDirectoryWritable = InstallUtil::isMinScriptCacheRuntimeDirectoryWritable(INSTANCE_ROOT);
if ($minScriptCacheDirectoryWritable) {
$this->message .= "\n" . Zurmo::t('InstallModule', 'The /minScript/cache runtime directory is writable.');
} else {
$this->message .= "\n" . Zurmo::t('InstallModule', 'The /minScript/cache runtime directory is not writable.');
$passed = false;
}
}
$debugExists = InstallUtil::doesDebugConfigExist(INSTANCE_ROOT);
if ($debugExists) {
$this->message .= "\n" . Zurmo::t('InstallModule', 'The debug.php file is present.');
} else {
$this->message .= "\n" . Zurmo::t('InstallModule', 'The debug.php file is not present.');
$passed = false;
}
return $passed;
}