public function hasParameter($paramName, $namespace = null, $scope = null)
{
$namespace = $namespace ?: $this->defaultNamespace;
$scope = $scope ?: $this->defaultScope;
$defaultScopeParamName = "{$namespace}." . self::SCOPE_DEFAULT . ".{$paramName}";
$globalScopeParamName = "{$namespace}." . self::SCOPE_GLOBAL . ".{$paramName}";
$relativeScopeParamName = "{$namespace}.{$scope}.{$paramName}";
// Relative scope, siteaccess group wise
$groupScopeHasParam = false;
if (isset($this->groupsBySiteAccess[$scope])) {
foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
$groupScopeParamName = "{$namespace}.{$groupName}.{$paramName}";
if ($this->container->hasParameter($groupScopeParamName)) {
$groupScopeHasParam = true;
break;
}
}
}
return $this->container->hasParameter($defaultScopeParamName) || $groupScopeHasParam || $this->container->hasParameter($relativeScopeParamName) || $this->container->hasParameter($globalScopeParamName);
}