本文整理匯總了PHP中eZINI::isDebugEnabled方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZINI::isDebugEnabled方法的具體用法?PHP eZINI::isDebugEnabled怎麽用?PHP eZINI::isDebugEnabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZINI
的用法示例。
在下文中一共展示了eZINI::isDebugEnabled方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: appendOverrideDir
/**
* Appends the override directory $dir to the override directory list.
* Appends override dir to 'override' scope if scope is not defined, meaning above anything else.
* See {@link eZINI::defaultOverrideDirs()} for how these parameters are used.
*
* @param string $dir
* @param bool $globalDir
* @param string|false $identifier Will overwrite existing directory with same identifier if set
* @param string|null $scope
* @return bool True if new dir was appended, false if there was a $identifier match and a overwrite
*/
function appendOverrideDir($dir, $globalDir = false, $identifier = false, $scope = null)
{
if (eZINI::isDebugEnabled()) {
eZDebug::writeNotice("Appending override dir '{$dir}'", __METHOD__);
}
if ($this->UseLocalOverrides == true) {
$dirs =& $this->LocalOverrideDirArray;
} else {
$dirs =& self::$GlobalOverrideDirArray;
}
$scope = self::selectOverrideScope($scope, $identifier, $dir, 'override');
// Check if the override with the current identifier already exists
$overrideOverwritten = false;
if ($identifier && isset($dirs[$scope][$identifier])) {
$dirs[$scope][$identifier] = array($dir, $globalDir);
$overrideOverwritten = true;
} else {
if ($identifier) {
$dirs[$scope][$identifier] = array($dir, $globalDir);
} else {
$dirs[$scope][] = array($dir, $globalDir);
}
}
$this->CacheFile = false;
return $overrideOverwritten === false;
}