本文整理汇总了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;
}